3com 8807 User Guide
782
C
HAPTER
67: SSH T
ERMINAL
S
ERVICE
Configuring the default service type and the default directory for SFTP
users
users
Perform the following configuration in system view.
The default service type is NULL and the default directory for SFTP users is NULL. If
a user is configured with a service type and directory, the service type and directory
of the user, rather than the default service type, are used. Therefore, if a single
user is configured, the user must be configured with complete authentication type
and service type; otherwise, the user may not be able to log in because of being
configured incompletely.
a user is configured with a service type and directory, the service type and directory
of the user, rather than the default service type, are used. Therefore, if a single
user is configured, the user must be configured with complete authentication type
and service type; otherwise, the user may not be able to log in because of being
configured incompletely.
Note the following points:
■
The default SFTP directory flash: is configured for a user whose service type is
set to SFTP or all. In this case, the priority of the directory is higher than the
default priority.
set to SFTP or all. In this case, the priority of the directory is higher than the
default priority.
■
Currently, for remote authentication, the default authentication mode must be
configured in the system before a remote user can log in successfully.
configured in the system before a remote user can log in successfully.
Configuring the service type to be used
Use this configuration to set the type of SSH service to be used.
Perform the following configuration in system view.
By default, the service type is stelnet.
Starting the SFTP server
Perform the following configuration in system view.
By default, the SFTP server is shut down.
Table 731 Configure the default service type and the default directory for SFTP users
Operation
Command
Configure the default service type and the
default directory for SFTP users
default directory for SFTP users
ssh service-type default { all [
sftp-directory directory ] | sftp [
sftp-directory directory ] | stelnet }
sftp-directory directory ] | sftp [
sftp-directory directory ] | stelnet }
Restore the default service type and the
default directory for SFTP users
default directory for SFTP users
undo ssh service-type default
Table 732 Configure the service type to be used
Operation
Command
Configure the service type to be used
ssh user username service-type { stelnet |
sftp [ sftp-directory directory ] | all [
sftp-directory directory ] }
sftp [ sftp-directory directory ] | all [
sftp-directory directory ] }
Restore the default service type
undo ssh user username service-type
Table 733 Start the SFTP server
Operation
Command
Start the SFTP server
sftp server enable
Shut down the SFTP server
undo sftp server enable