# TTSSH command line

You can use the following command line parameters on TTSSH.

## Options

<username>@<host>[:<#TCP port>]
  A user can specify the user name in front of atmark.
<scheme>://[<username>[:<password>]@]<host>[:<TCP port>][/]
  A user can the URL format.
  A user can specify ssh, ssh1, ssh2, slogin, slogin1 and slogin2 at the <scheem>.
  If the port number is not specified, 22 is used as the port number and then TCPPort value in teraterm.ini file is ignored.
/f=<file>
  read teraterm.ini(file)
  If this value is not a full path, it is understood as a relative path from ttssh.dll.
/ssh-f=<file>
  read teraterm.ini(file)
  If this value is not a full path, it is understood as a relative path from ttssh.dll.
/ssh-consume=<file>
  After teraterm.ini file is read, it is erased.
  If this value is not a full path, it is understood as a relative path from ttssh.dll.
/t=<value>
  - value=2 SSH is enabled
  - value=excluding 2 SSH is disable
/nossh
  disable SSH connection
/telnet
  disable SSH connection
  And use Telnet protocol. It is same as /T=1 of Tera Term.
/1
  connect to server with SSH1 protocol
/ssh1
  connect to server with SSH1 protocol
/2
  connect to server with SSH2 protocol
/ssh2
  connect to server with SSH2 protocol
/ssh-autologin
  try to autologin with empty password
/ssh-autologon
  try to autologin with empty password
/auth=<mode>
  try to autologin with the authentication method that is sepcified by <mode>.
  - password Password Authentication
  - publickey Public Key Authentication
  - challenge Challenge/Response(Keyboard-interactive) Authentication
  - pageant Public Key Authentication with Pageant
/user=<username>
  your username is specified
/passwd=<password>
  your password is specified
/keyfile=<file>
  your private key file is specified
  When the file name is not the absolute path, the file is identified as the relative path.
/ask4passwd
  disable autologin and ask for password
  '/auth=<mode>' means only authentication method
/ssh-L[<listen_addr>:]<port1>:<host>:<port2>
  port-fowarding from local listen-address(<listen_addr>) port(<port1>) to remote side host(<host>) port(<port2>)
  if <listen_addr> is omitted, it listens at localhost.
/ssh-R[<listen_addr>:]<port1>:<host>:<port2>
  port-fowarding from remote listen-address(<listen_addr>) port(<port1>) to local side host(<host>) port(<port2>)
  if <listen_addr> is omitted, it listens at localhost.
  <listen_addr> is not used with SSH1 protocol.
/ssh-X
  X11 port-fowarding
/ssh-A
  enable agent forwarding
/ssh-a
  disable agent forwarding
/ssh-agentconfirm=<on/off>
  - on confirm agent-forwarding request.
  - off don't confirm agent-forwarding request.
/ssh-v
  setup the log level to VERBOSE mode
/ssh-C
  enable compression(level=6)
/ssh-C=<level>
  enable compression with compression level(0-9)
/ssh-c
  disable compression
/ssh-icon=<icon>
  specify the icon on SSH connection
  - green A green icon on TTSSH2.63 or later.
  - yellow An yellow icon on TTSSH2.62 earlier.
  - default A default icon(equal to green).
/nosecuritywarning
  supress SSH security warning. THIS OPTION PROHIBITED.

If the value can include the space character, a user should put the value in quotations by using `"' character.
If the value includes the `"' character, the user should write the `"' character two times.

## Example

    ttermpro.exe server1:22 /ssh /ssh-L30025:smtpsrv1:25 /ssh-L30110:pop3srv1:110
    ttermpro.exe server2:22 /ssh /ssh-X
    ttermpro.exe server3:22 /ssh /2 /auth=password /user=guest /passwd=guest
    ttermpro.exe server4:22 /ssh /2 /auth=publickey /user=admin /keyfile=pathofkeyfile /ask4passwd
    ttermpro.exe ssh://user:password@server5/ /auth=password

## Example: Pageant collaboration

Setup Pageant in the startup folder.

    C:\usr\pageant.exe c:\usr\Identity.ppk

How to connect with the public key authentication by using Pageant is shown as follows.

    ttermpro.exe shell.sourceforge.jp:22 /ssh /auth=pageant /user=yutaka