ip ssh authentication-retries
-
- Last UpdatedAug 13, 2021
- 1 minute read
Configures the number of SSH authentication retries.
By default, the device attempts to negotiate a connection with the connecting host three times.
number-retries
| The number of SSH authentication retries. Valid values are from 1 through 5.
|
Global configuration mode
The ip ssh authentication-retries command is not applicable on devices that act as an SSH client. On such devices, when you try to establish an SSH connection with the wrong credentials, the session is not established and the connection is terminated. The device does not check the SSH authentication retry configuration set using the ip ssh authentication-retries command. The command is applicable only to SSH clients such as PuTTY, SecureCRT, and so on.
The no form of the command sets the number of retries to the default value of three.
The following example shows how to set the authentication retries to 5.
device(config)# ip ssh authentication-retries 5