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의 현재 경로를 보여 줍니다. 기본 값은 세션 파일의 경로입니다
Show the current path of the local PC. The default is the path to the session files.

clear

Clear local shell command prompt screen, address bar history, and command history.

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

 The available options are:

screen Clear the screen. This is the default value.
address Clear the history of the address bar.
history Clear the history of local shell commands.

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

 The available options are:

AutoSaveHostKey In case of SSH connection, fingerprint information on the host key is automatically saved. If this is the first host to access or if the host key has been changed by the administrator's setting, Xshell asks whether to save the host key. Default value is 0 (user confirmation)
ComposeBarHistoryCount The number of command history saved in the compose bar. The default value is 50 (pcs).
ComposePaneHistoryCount The number of command history saved in the compose window. The default value is 50 (pcs).
EnableCertKey Makes enable to use OpenSSH CA keys. The default value is 1.
ExitAllTabClose Closes the Xshell window when all sessions are closed at the same time while the Send command to all sessions light is on. The default is 0.
ImportFileOnDrop You can import user keys by dragging and dropping them into the local shell. The default value is 0 (not used).
InputCRLF You can send the value of the Enter key to CRLF. The default value is 0 (only LF is sent).
JumpHostListenPort This is the default port of the proxy server used as a jump host when using the SSH jump host function. The default number is 10000.
KeypadEnterToTab Use keypad Enter key as Tab key.
LogFolderPath This is the default folder to store logs for sessions. The default is 'User Data Folder\Xshell\Logs'. The location where the session log is saved can be determined separately for the session.
MaxRecentSessions Sets the maximum count of recent sessions.
OpenXftpNewWin Opens a new window when calling Xftp using the currently connected session information. The default is 0 to open an existing window in a new tab.
PrintToEditor When the is set to 1, the output is not sent to the printer when the terminal print code is received, but to the editor specified by the user. The default is 0.
SaveAppLog Saves the program's own log to the [User Data Folder]\Applog folder. The default value is 0 (do not store).
ScriptFolderPath This is the default folder that is opened when specified in a session file or when calling a script from a menu. The default is 'User Data Folder\Xshell\Scripts'.
ShowFileManagerTab Show File Manager tab in Tunneling Bar. The default is 1.
StartCmd Run initial command when a new Local Shell tab is open.
StartFolder This is the default path when the local shell starts. The default is 'User Data Folder\Xshell\Sessions', which is the root of the session folder. User data folder can be set in the program.
StopScrollOnLButtonDown Screen output is stopped while the mouse button is held down. The default value is 1 (use).

helpShow help for each command. For explanation of the ssh command, use the'help ssh' command. If'help' is entered without command, this help is displayed.

ssh [user:pass@]host [port]

Connect using the SSH protocol.

-pa Use Password authentication. Ignore other auth parameters(-A -i).
-a

Do

Doe not use Xagent for user authentication.
-A Use Xagent for user authentication.
-i user_key

User

 A user key for Public key authentication.
-J jump_host Use jump host proxy.*
user

Indicates

Indicate the user's login name.
pass If pass is

definded

defined, 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:pass@]host [port]

Connect using the SFTP protocol.

telnet [user:pass@]host [port]

Connect using the telnet protocol.

rlogin [user@]host [port]

Connect using the rlogin protocol.

ftp [user:pass@]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.
scp
scp src ... [user:pass@]host:dest

Use the scp

command

protocol to send or get the file to another server.

...

-pa Use Password authentication. Ignore other auth parameters(-A -i).
-a Doe not use Xagent for user authentication.
-A Use Xagent for user authentication.
-i user_key A user key for Public key authentication.
-J jump_host Use jump host proxy.*
-r Copy directory recursively.
-p Preserve modification and access time.
-P Indicates a port number (address of an application). If the port is not specified, the default ssh port (22) is used.

user Indicate the user's login name.
pass If pass is defined, use password authentication.
host Indicates the name, alias, or Internet address of the remote host.
src ... Indicates the path of source files or directories. You can list files separated by a space character.
dest Indicates the path of a destination file or folder.