ssh login-attempts

Use this command to set the number of times SSH client would try to authenticate to establish the SSH session.

Use the no form of this command to set the number of authentication attempts to its default (3).

By default, SSH clients may send the keys to authenticate, such a implicit authentication failures would also decrease authentication attempt count. Hence the configured value is not directly proportional to the user's password based authentication attempt.

Enable the feature ssh command to configure this command on default VRFClosed Virtual Routing and Forwarding port.

You can only give this command when the SSH server is enabled for default VRF. See the feature ssh command.

Command Syntax

Copy
ssh login-attempts <1-3> (vrf (NAME|management)|)
no ssh login-attempts (vrf (NAME|management)|)

Parameters

<1-3>

Retries attempts, default is 3 attempts

vrf management

Defines the management VRF instance.

vrf NAME

Specify the user-defined VRF instance name.

Default

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

Command Mode

Configure mode

Applicability

This command was introduced before OcNOS version 1.3.

Examples

Copy
#configure terminal
(config)#ssh login-attempts 3