Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Xshell provides local commands for advanced users familiar with the terminal environment.
Basically, Xshell prompt is displayed on the terminal screen when a remote host is not connected. When a session is connected, press 'Ctrl+Alt+]' to exit to local prompt. To return to the remote host mode, enter 'exit' or press 'Ctrl+D'.
The following commands can be used.

Command

Description

help
?

Display commands list on the terminal window.

new

Open the New Session Properties dialog box.

open the [session]

Connect with the corresponding session when 'session' is designated. If a session is not designated, the Sessions dialog box is opened.

edit [session]

Open the Session Properties dialog box for the corresponding session if 'session' is designated. Open the Session Properties dialog box for the default session if 'session' is not designated.

list

Display a list of directories and information about sessions in the current directory.

cd

Change the current task directory.

pwd로컬 PC의 현재 경로를 보여 줍니다. 기본 값은 세션 파일의 경로입니다.

clear

Clear local shell command prompt screen, address bar history, and command history. 사용 가능한 옵션은 다음과 같습니다.
screen 화면을 지웁니다. 기본 값입니다.
address 주소 표시줄의 내역을 지웁니다.
history 로컬 셸 명령어 내역을 지웁니다.

exit
quit

Close Xshell session or return to remote host.

set

Configure the Xshell environment. Certain settings can be defined in the session properties or options. To view the current configuration, type the set command without any command line options. 사용 가능한 옵션은 다음과 같습니다.

StartFolder 로컬 셸이 시작할 때 기본 경로입니다. 기본 값은 세션 폴더의 루트인 '사용자 데이터 폴더\Xshell\Sessions'입니다. 사용자 데이터 폴더는 프로그램에서 정할 수 있습니다.
LogFolderPath 세션의 로그를 저장할 기본 폴더입니다. 기본 값은 '사용자 데이터 폴더\Xshell\Logs'입니다. 세션의 로그가 저장되는 곳은 해당 세션에서 따로 정할 수 있습니다.
ScriptFolderPath 세션 파일에서 지정할 때나 메뉴에서 스크립트를 호출할 때 열리는 기본 폴더입니다. 기본 값은 '사용자 데이터 폴더\Xshell\Scripts'입니다.
AutoSaveHostKey SSH 접속일 경우 호스트 키에 대한 손도장 정보를 자동으로 저장합니다. 처음 접속하는 호스트이거나 관리자의 설정으로 호스트 키가 변경된 경우 Xshell은 호스트 키 저장 여부를 묻습니다. 기본 값은 0(사용자 확인)
InputCRLF = Enter 키의 값을 CRLF로 보낼 수 있습니다. 기본 값은 0(LF만 보냄)입니다.
ExitAllTabClose 모든 세션에 명령 보내기 등이 켜진 상태에서 모든 세션이 동시에 닫힐 경우 Xshell 윈도우를 닫습니다. 기본 값은 0입니다.
StopScrollOnLButtonDown 화면 출력이 마우스 외쪽 버튼을 누르고 있는 동안 중지됩니다. 기본 값은 1(사용)입니다.
OpenXftpNewWin 현재 연결된 세션 정보를 이용하여 Xftp를 호출할 때 새 창으로 엽니다. 기본 값은 기존 창의 새 탭으로 여는 0입니다.
ComposeBarHistoryCount 작성 바에서 저장되는 명령어 내역의 개수입니다. 기본 값은 50(개) 입니다.
ComposePaneHistoryCount 작성 창에서 저장되는 명령어 내역의 개수입니다. 기본 값은 50(개)입니다.
SaveAppLog 프로그램 자체의 로그를 [사용자 데이터 폴더]\Applog 폴더에 저장합니다. 기본 값은 0(저장하지 않음)입니다.
ImportFileOnDrop 로컬 셸에 마우스 끌어 놓기로 사용자 키 가져오기를 할 수 있습니다. 기본 값은 0(사용하지 않음)입니다.
JumpHostListenPort SSH 점프 호스트 기능을 이용할 때 점프 호스트로 사용하는 프록시 서버의 기본 포트입니다. 기본 값은 10000(번)입니다.

help각 명령의 도움말을 보여 줍니다.  ssh 명령에 대한 설명을 위해 'help ssh' 명령을 사용합니다. 명령어 없이 'help'만 입력했을 경우 이 도움말을 보여 줍니다.

ssh

Connect using the SSH protocol.

-pa Use Password authentication. Ignore other auth parameters(-A -i).
-a Do not use Xagent for user authentication.
-A Use Xagent for user authentication.
-i user_key User key authentication.
-J jump_host Use jump host proxy.*
user Indicates the user's login name.
pass If pass is definded, use password authentication.
host Indicates the name, alias, or Internet address of the
remote host.
port Indicates a port number (address of an application).
If the port is not specified, the default ssh port
(22) is used.

sftp [user@]host [port]

Connect using the SFTP protocol.

telnet [user@]host [port]

Connect using the telnet protocol.

rlogin [user@]host [port]

Connect using the rlogin protocol.

ftp [user@]host [port]

Connect using the ftp protocol.

ipconfig

Execute Windows ipconfig command.

ping host

Execute Windows ping command.

tracert host

Show packet path to host.

netstat

Execute Windows netstat command.

nslookup

Execute Windows nslookup command.

realcmdExecute Windows cmd command.
scpUse the scp command to send or get the file to another server.

Anchor
_Regular_expressions
_Regular_expressions