sftp server idle-timeout
Syntax
sftp server idle-timeout time-out-value
undo sftp server idle-timeout
View
System view
Default level
3: Manage level
Parameters
time-out-value: Specifies the timeout period in minutes, in the range of 1 to 35791.
Description
Use sftp server idle-timeout to set the idle timeout period for SFTP user connections.
Use undo sftp server idle-timeout to restore the default.
By default, the idle timeout period is 10 minutes.
If an SFTP connection is idle when the idle timeout timer expires, the system automatically terminates the connection. If there are many SFTP connections, you can set a smaller value so that the connection resources can be properly released.
Related commands: display ssh server.
Examples
# Set the idle timeout period for SFTP user connections to 500 minutes.
<Sysname> system-view [Sysname] sftp server idle-timeout 500