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.The default is 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 fivce.

Examples

The following example sets the authentication retries to 3.

device# configure terminal
device(config)# ip ssh authentication-retries 3

The following example restores the default of 5 authentication retries.

device# configure terminal
device(config)# no ip ssh authentication-retries
History
Release version Command history
Please confirm
09.0.00
The command default was changed to 5 authentication retries.