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.
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. |
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.