telnet login-retries

Configures the number of attempts you can enter a correct username and password before the device disconnects the Telnet session.
Syntax
telnet login-retries number
no telnet login-retries number
Command Default

By default, four attempts are supported.

Parameters
number
The number of retries the device prompts you for a username and password before disconnecting the Telnet session. The valid values are from 0 through 5. The default is 4.
Modes

Global configuration mode

Usage Guidelines

If you are connecting to the device using Telnet, the device prompts you for a username and password. By default, you have up to four chances to enter a correct username and password. If you do not enter a correct username or password after four attempts, the device disconnects the Telnet session.

The no form of the command resets the number of attempts to the default.

Note: You must configure Telnet with the enable telnet authentication local command to enable only a specific number of Telnet login attempts.
Examples

The following example shows how to configure up to five chances to enter a correct username and password before getting disconnected.

device(config)# telnet login-retries 5