ssh server max-auth-tries

Configures the maximum number of times a user is allowed to try to authenticate to the SSH server.

Syntax

ssh server max-auth-tries { num-tries }
no ssh server max-auth-tries

Command Default

The default is 6 tries.

Parameters

num-tries
Maximum number of tries. Range of valid values is from 1 through 10.

Modes

Global configuration mode

Usage Guidelines

Use the no form of the command to reset the default.

This command configures the maximum number of times a user is allowed to try authenticate to the SSH server. When the number of attempts to log in to an SSH session is more than the defined value, the session is terminated.

Examples

This example changes the maximum number of tries to 2.

device# configure terminal
device(config)# ssh server max-auth-tries 2