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 | 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. The available options are: screen Clear the screen. This is the default value. |
exit | 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. |
The available options are: |
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.
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'.
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). |
50 (pcs). |
ImportFileOnDrop You can import user keys by dragging and dropping them into the local shell. The default value is 0 (not used). |
0 (only LF is sent). |
ComposePaneHistoryCount The number of command history saved in the compose window. The default value is 50 (pcs)
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. |
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.
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
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'. | |
help | Show 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). |
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. |
realcmd | Execute Windows cmd command. |
scp src ... [user:pass@]host:dest | Use the scp |
protocol to send or get the file to another server |
...
. -pa Use Password authentication. Ignore other auth parameters(-A -i). user Indicate the user's login name. |