4.
(Optional)
show system login
[
failures
]
5.
(Optional)
copy running-config startup-config
DETAILED STEPS
Purpose
Command or Action
Enters global configuration mode.
configure terminal
Example:
Step 1
switch#
configure terminal
Configures the quiet mode time period. The range for all
arguments is from 1 to 65535.
[
no
]
system login block-for seconds attempts tries within
seconds
Step 2
Example:
The example shows how to configure the switch to enter a
100-second quiet period if 2 failed login attempts are
exceeded within 60 seconds.
switch(config)#
system
login block-for 100
attempts 2 within 60
After you enter this command, all login attempts made
through Telnet or SSH are denied during the quiet period.
Access control lists (ACLs) are not exempt from the quiet
period until the
system
command is entered.
You must enter this command before any other
login command can be used.
Note
Specifies an ACL that is to be applied to the switch when
it changes to quiet mode. When the switch is in quiet mode,
(Optional) [
no
]
system login quiet-mode access-class
acl-name
Step 3
all login requests are denied, and the only available
connection is through the console.
Example:
switch(config)#
system
login quiet-mode
access-class myacl
Displays the login parameters. The
failures
option displays
information related only to failed login attempts.
(Optional)
show system login
[
failures
]
Example:
Step 4
switch(config)#
show
system
login
Copies the running configuration to the startup
configuration.
(Optional)
copy running-config startup-config
Example:
Step 5
switch(config)#
copy running-config startup-config
Restricting User Login Sessions
You can restrict the maximum number of simultaneous login sessions per user. Doing so prevents users from
having multiple unwanted sessions and solves the potential security issue of unauthorized users accessing a
valid SSH or Telnet session.
SUMMARY STEPS
1.
configure terminal
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
30
Configuring AAA
Restricting User Login Sessions