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-retriesnumber
no telnet login-retriesnumber
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.

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