ssh server authentication-timeout

Syntax

ssh server authentication-timeout time-out-value

undo ssh server authentication-timeout

View

System view

Default level

3: Manage level

Parameters

time-out-value: Specifies an authentication timeout period in seconds, in the range of 1 to 120.

Description

Use ssh server authentication-timeout to set the SSH user authentication timeout period on the SSH server. If a user does not finish the authentication when the timer expires, the connection is down.

Use undo ssh server authentication-timeout to restore the default.

By default, the authentication timeout period is 60 seconds.

You can set a small value for this timer to prevent malicious occupation of TCP connections.

Related commands: display ssh server.

Examples

# Set the SSH user authentication timeout period to 10 seconds.

<Sysname> system-view
[Sysname] ssh server authentication-timeout 10