Xshell can understand the following command line parameters:
Code Block |
---|
|
SYNOPSYS
xshell [OPTION]...[FILE]
EXAMPLE: xshell -newwin $SESSION_PATH$
OPTIONS
-folder $FOLDER_PATH$:
Opens all session in the $FOLDER_PATH$ folder.
-newwin [protocol://][user[:password]@]host[:port]
-newwin $SESSION_PATH$
Creates a new connection in the new Xshell window
-URL [protocol://][user[:password]@]host[:port]
Start a connection with URL.
Example: xshell -url ssh://user1:password@192.168.1.17:22
-open
Open the sessions dialog box.
Example: xshell -open
-register
Open the product key registration window.
Example: xshell -register
-about
Open the Xshell about window.
Example: xshell -about
-prop $SESSION_PATH$
Open the session properties dialog box.
Ex: xshell -prop $SESSION_PATH$
-create $SESSION_PATH$
Create a new session.
Example: xshell -create $SESSION_PATH$
-newtab $NAME$
Assign the tab $NAME$.
Example: xshell -newtab "new tab"
-addtab
Open a new local shell tab.
Example: Xshell -addtab
-i $private_key
Use putlic key authentication.
Example: xshell -url ssh://user1@192.168.1.17:22 -i my_private_key |
For example, if you want to connect to the server, 192.168.10.100 with user name, root and password, passwd, you would use the following command:
Code Block |
---|
|
Xshell -url ssh://root:passwd@192.168.10.100
(The -url parameter can be omitted in Xshell v5) |
This opens the session in the last Xshell window that you interacted with.
If you want to open the session in the new Xshell window, you would use:
Code Block |
---|
|
Xshell -newwin ssh://root:passwd@192.168.10.100 |