3.2 Using SSH Command Options

After downloading an SSH-compliant client to your workstation, you can send the options listed in Table 3-2 with the ssh command to the NetWare server. The basic command syntax is:


ssh option host command

Table 3-2 SSH command options

Use Option

To

-a

Disable authentication agent forwarding (default)

-A

Enable authentication agent forwarding

-b bind_address

Specify the local IP address to transmit from on machines with multiple address or aliased addresses

-c cipher

Select an encryption algorithm

-C

Enable compression

-D port

Enable dynamic application-level port forwarding.

-e escape_character

Set the escape character; "none" = disable (default: ~)

-f

Fork into background after authentication

-F config_filename

Specify the location of the config file (default: ~/etc/ssh/config). Requests ssh to go to the background just before command execution

-g

Allow remote hosts to connect to forwarded ports.

-i filename

Select an identity file for public key authentication (default: ~/.ssh/identity)

-l username

Log in using the specified username

-L listen-port:host:port

Forward local port to remote address

This causes ssh to listen for connections on a port and forward them to the other side by connecting to host:port.

-m macs

Specify MAC algorithms for ssh protocol version 2.

-n

Redirect input from . (root)

-N

Do not execute a shell or command

-o option

Process the option as if it is read from a configuration file.

-p port

Connect to the specified port. The server must be on the same port.

-q

Do not display any warning messages

-R listen-port:host:port

Forward a remote port to local address

This causes ssh to listen for connections on a port and forward them to the other side by connecting to host:port

-s

Invoke command (mandatory) as SSH2 subsystem

-t

Allocate a tty even if command is given

-T

Do not allocate a tty

-v

Display verbose debugging messages. Using multiple -v increases verbosity.

-V

Display version number only

-z

Autoclose after command execution

-1

Forces ssh to try protocol version 1 only

-2

Forces ssh to try protocol version 2 only

-4

Forces ssh to use IPv4 addresses only

-6

Forces ssh to use ntwk_ipv6_nw addresses only