< Home

ssh server authentication-retries

Function

The ssh server authentication-retries command sets the maximum number of authentication retries for an SSH connection.

The undo ssh server authentication-retries command restores the default maximum number of authentication retries for an SSH connection.

The default maximum number of authentication retries for an SSH connection is 3.

Format

ssh server authentication-retries times

undo ssh server authentication-retries

Parameters

Parameter Description Value
times Specifies the maximum number of authentication retries for an SSH connection. The value is an integer that ranges from 1 to 5.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

To configure the maximum number of authentication retries for an SSH connection, run the ssh server authentication-retries command. This prevents server overload due to numerous malicious access requests.

Precautions

The configured number of retries takes effect upon the next login.

Example

# Set the maximum number of authentication retries to 4.

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