< Home

ssh server timeout

Function

The ssh server timeout command sets the timeout period for SSH connection authentication.

The undo ssh server timeout restores the default timeout period for SSH connection authentication.

The default timeout period for SSH connection authentication is 60 seconds.

Format

ssh server timeout seconds

undo ssh server timeout

Parameters

Parameter Description Value
seconds Specifies the timeout period for SSH connection authentication. The value is an integer ranging from 1 to 120, in seconds.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

If a user has not logged in successfully before the timeout period for SSH connection authentication expires, the current connection is terminated to ensure security. To query the current timeout period, run the display ssh server command.

Precautions

The timeout period setting takes effect upon next login.

If a very short timeout period is configured for SSH connection authentication, user login may fail due to a connection timeout. Using the default timeout period is recommended.

Example

# Set the timeout period for SSH connection authentication to 90 seconds.

<HUAWEI> system-view
[HUAWEI] ssh server timeout 90
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >