Subsystems
Subsystems can be defined in the
sshd2_config
file using the following
syntax.
subsystem-<name> argument
The argument
is the command which will be executed
when the subsystem is requested.
$ ssh2 user@remote -s <name>
The argument
can be a list of commands separated with
a semicolon (;
), or it can, for example, refer to a
script.
One example of a subsystem is sftp
.
subsystem-sftp /usr/lpp/ssh2/sftp-server
|
The sftp
subsystem also has an internal alternative. This should be
used for example when the user is chrooted and does not have access to
the sftp-server
binary.
subsystem-sftp internal://sftp-server
|