Getting Started Guide

LocalCommand
Use this directive to specify a command to execute on the local machine after successful connection
to the server. The following escape character substitutions will be performed:
%d local users home directory
%h remote host name
%l local host name
%n host name as provided on the command line
%p remote port
%r remote user name
%u local user name
For example:
LocalCommand pwd
NOTE: This directive is ignored unless PermitLocalCommand is enabled.
LocalForward
Use this directive to specify that a TCP/IP port on the local host must be forwarded over the secure
channel to the specified host and port of the remote host. The first value must be[bind_address:
] port. The second value must be host:hostport. The IPv6 addresses can be specified by
enclosing addresses in square brackets or by using the following syntax: [bind_address/] port
or host / hostport.
You can specify multiple forwardings on the command line. Only the superuser can forward
privileged ports. By default, the local port is bound in accordance with the GatewayPorts setting.
However, you can use an explicit bind_address to bind the connection to a specific address.
Thebind_address of localhost indicates that the listening port is bound for local use only.
An empty address or star (*) indicates that the port is available for all interfaces.
This directive does not have a default value.
For example:
LocalForward localhost:5001 remotehost:23
LogLevel
Use this directive to specify the verbosity level used when logging messages from ssh.
Table 24 lists the valid values for the LogLevel directive.
Table 24 LogLevelFacility Values
DescriptionValue
Does not log messages. The messages are not displayed on the standard
output.
QUIET
Logs only fatal messages.FATAL
Logs all error messagesERROR
Specifies the information that must be loggedINFO
Logs detailed messagesVERBOSE
Specifies debugging messages that must not be logged during a normal
operation
DEBUG
Specifies a higher degree of debug level than DEBUG. Specifying debug1 is
similar to specifying d or v on the command line, while invoking sshd.
DEBUG1
Client Configuration Directives 91