Purpose
Command or Action
Exits global configuration mode.
exit
Example:
Step 3
switch(config)# exit
switch#
Displays the user account configuration.
(Optional)
show user-account
Example:
Step 4
switch# show user-account
Copies the running configuration to the startup
configuration.
(Optional)
copy running-config startup-config
Example:
Step 5
switch# copy running-config startup-config
Configuring a Maximum Number of SSH Login Attempts
You can configure the maximum number of SSH login attempts. If the user exceeds the maximum number
of permitted attempts, the session disconnects.
The total number of login attempts includes attempts through public-key authentication, certificate-based
authentication, and password-based authentication. If public-key authentication is enabled, it takes priority.
If only certificate-based and password-based authentication are enabled, certificate-based authentication takes
priority. If you exceed the configured number of login attempts through all of these methods, a message
appears indicating that too many authentication failures have occurred.
Note
SUMMARY STEPS
1.
configure terminal
2.
ssh login-attempts number
3.
(Optional)
show running-config security all
4.
(Optional)
copy running-config startup-config
DETAILED STEPS
Purpose
Command or Action
Enters global configuration mode.
configure terminal
Example:
Step 1
switch# configure terminal
switch(config)#
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
134
Configuring SSH and Telnet
Configuring a Maximum Number of SSH Login Attempts