Xshell Command Line Option

The following are the command line parameter options recognized by Xshell. These parameters can be used when executing Xshell from the Windows console program or other applications.

Option, Parameter

Description

'session file'

Execute the session. 'Session file' can include a path.

-folder 'session folder'

Execute all folder sessions.

-url [protocol://][user[:password]@]host[:port]

Connect by directly entering URL, rather than using designated session file. Usable protocols are SSH, SFTP, TELNET, RLOGIN and FTP.
When protocol is omitted, use the default protocol designated in the Options dialog box [General] tab.
When user and password are ommited, a window for the authentication is displayed.
When a connection port is not designated, the connection protocol default port of is used.

-open

Open the Sessions dialog box.

-register

Open the a dialog box for product registration.

-about

Open the Xshell Information dialog box where product version and license information is available.

-prop 'session file'

Open the Session Properties dialog box. 'Session file' can include a path.

-create 'session file'

Create a new session.

-newwin

Open the a new Xshell window.

-newtab 'tab name'

Create a new tab with 'Tab Name'.

Example

  • Execute xdev.xsh session file.
    Xshell 'c:\users\user\Documents\ NetSarang Computer\6\Xshell\Sessions\xdev.xsh'
  • Connect to foobar.com with the default protocol.
    Xshell -url foobar.com
  • Connect to foobar.com with ssh.
    Xshell -url ssh://foobar.com
  • Connect to foobar.com with ssh. User name and password are 'username' and 'deomopassword' respectively.
    Xshell –url ssh://username:demopassword@foobar.com
  • Connect to foobar.com port 2300 using telnet protocol.
    Xshell –url telnet://foobar.com:2300
  • Connect to foobar.com by executing a new Xshell window.
    Xshell -newwin -url foobar.com
  • Note
    If the [Open multiple sessions in a single Xshell window] option is set in the [Advanced] tab of Options dialog box, All parameters with the exception of the '-newwin' are executed in the last Xshell window or a new tab.
    The '-newwin' option can be used with other options. A new Xshell window is started with the options.