332
sftp server enable
Use
sftp server enable
to enable the SFTP server function.
Use
undo sftp server enable
to disable the SFTP server function.
Syntax
sftp server enable
undo sftp server enable
Default
The SFTP server function is disabled.
Views
System view
Default command level
3: Manage level
Examples
# Enable the SFTP server function.
<Sysname> system-view
[Sysname] sftp server enable
Related commands
display
ssh
server
sftp server idle-timeout
Use
sftp server idle-timeout
to set the idle timeout timer for SFTP user connections.
Use
undo sftp server idle-timeout
to restore the default.
Syntax
sftp server idle-timeout
time-out-value
undo sftp server idle-timeout
Default
The idle timeout timer is 10 minutes.
Views
System view
Default command level
3: Manage level
Parameters
time-out-value
: Specifies a timeout timer in minutes, in the range of 1 to 35791.
Usage guidelines
If an SFTP connection is idle when the idle timeout timer expires, the system automatically
terminates the connection. If many SFTP connections are established, you can set a smaller value
so that the connection resources can be promptly released.
Examples
# Set the idle timeout timer for SFTP user connections to 500 minutes.