SSH Communications Security
Previous Next Up [Contents] [Index]

    Introduction >>
    Configuration >>
    Connecting >>
    Terminal Window >>
    File Transfer >>
    Toolbar Reference >>
    Menu Reference >>
    Advanced Information >>
    Troubleshooting >>
    Appendices >>
        SSH2
        SCP2 >>
        SFTP2 >>
        ssh-keygen2
        Frequently Asked Questions

SSH2

SSH2.EXE is a command line version of the SSH Secure Shell for Workstations graphical user interface (GUI) utility.

Note: From SSH Secure Shell for Workstations (SSH Secure Shell) version 3.2.3 onwards, ssh2.exe has been a port from the UNIX version. Therefore some of the option switches have changed from earlier ssh2.exe versions.

The syntax of SSH2.EXE is the following:

ssh2 [options] [user@]host[#port] [command]

The following options are available:

-l login_name  Log in using this user name.
+a             Enable authentication agent forwarding.
-a             Disable authentication agent forwarding.
+x             Enable X11 connection forwarding (treat X11 clients as
               UNTRUSTED).
+X             Enable X11 connection forwarding (treat X11 clients as
               TRUSTED).
-x             Disable X11 connection forwarding.
-k dir         Custom configuration dir where ssh2_config, hostkeys and
               userkeys are located.
-i file        Identity file for public key authentication
-F file        Read an alternative configuration file.
-t             Tty; allocate a tty even if command is given.
-v             Verbose; display verbose debugging messages. Equal to '-d 2'
-d level       Set debug level.
-V             Display version string.
-q             Quiet; don't display any warning messages.
-c cipher      Select encryption algorithm. Multiple -c options are
               allowed and a single -c flag can have only one cipher.
-m MAC         Select MAC algorithm. Multiple -m options are
               allowed and a single -m flag can have only one MAC.
-p port        Connect to this port.  Server must be on the same port.
-S             Don't request a session channel.
-L listen-port:host:port   Forward local port to remote address
-R listen-port:host:port   Forward remote port to local address
               These cause ssh to listen for connections on a port, and
               forward them to the other side by connecting to host:port.
-g             Gateway ports, i.e. remote hosts may connect to locally
               forwarded ports.
+g             Don't gateway ports.
+C             Enable compression.
-C             Disable compression.
-E prov        Use 'prov' as the external key provider
-I initstr     Use 'initstr' as initialization string for the external key
               provider
-o 'option'    Process the option as if it was read from a configuration
               file.
-h             Display this help.

The command can be either of the following:

  • remote_command [arguments] ...

    Run command in remote host.

  • -s service

    Enable a service in remote server.

Type ssh2 -h to see the command line syntax, the location of the configuration files, supported ciphers and your license type.

Previous Next Up [Contents] [Index]


[ Contact Information | Support | Feedback | SSH Home Page | SSH Products ]

Copyright © 2003 SSH Communications Security Corp.
All rights reserved.
Copyright Notice