ip ssh authentication-retries

Configures the number of SSH authentication retries.
Syntax
ip ssh authentication-retries number-retries
no ip ssh authentication-retries number-retries
Command Default

By default, the device attempts to negotiate a connection with the connecting host three times.

Parameters
number-retries
The number of SSH authentication retries. Valid values are from 1 through 5.
Modes

Global configuration mode

Usage Guidelines

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.

Examples

The following example shows how to set the authentication retries to 5.

device(config)# ip ssh authentication-retries 5