The idle-timeout command sets the timeout period for the SSH/Telnet server to disconnect SSH client. If the user does not invoke the command for a certain period, the connection gets disconnected.
The undo idle-timeout command restores the default timeout period.
By default, the timeout period is 10 minutes.
Parameter | Description | Value |
---|---|---|
minutes |
Specifies the time period in minutes to disconnect from the user interface view. |
It is an integer data type. The value ranges from 0 to 35791 minutes. The timeout period for a console user ranges from 1 to 1440 minutes, and the timeout period for a VTY user ranges from 0 to 35791 minutes. |
seconds |
Specifies the time period in seconds to disconnect from the user interface view. |
It is an integer data type. The value ranges from 0 to 59 seconds. |
You can disable the idle timeout for a particular VTY, by executing the idle-timeout command with zero minutes and zero seconds. If an administrator does not close an operation interface due to neglect, non-administrator users may perform unauthorized operations.
If the function is not configured after timeout of VTY, other users may fail to set up VTY connections when the login user is in the idle state.
<HUAWEI> system-view [~HUAWEI] user-interface vty 0 4 [~HUAWEI-ui-vty0-4] idle-timeout 1 30
<HUAWEI> system-view [~HUAWEI] user-interface console 0 [~HUAWEI-ui-console0] idle-timeout 1 30