idle-timeout (VTY-type user interface view)

Function

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.

Format

idle-timeout minutes [ seconds ]

undo idle-timeout

Parameters

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.

Views

VTY-type user interface view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
tty write

Usage Guidelines

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.

Example

# Set the timeout period of vty user interface view to 1 minute and 30 seconds.
<HUAWEI> system-view
[~HUAWEI] user-interface vty 0 4
[~HUAWEI-ui-vty0-4] idle-timeout 1 30
# Set the timeout period of console user interface view to 1 minute and 30 seconds.
<HUAWEI> system-view
[~HUAWEI] user-interface console 0
[~HUAWEI-ui-console0] idle-timeout 1 30
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >