Clearing Telnet Sessions
You can clear Telnet sessions from the Cisco NX-OS device.
Before you begin
Enable the Telnet server on the Cisco NX-OS device.
SUMMARY STEPS
1.
show users
2.
clear line vty-line
DETAILED STEPS
Purpose
Command or Action
Displays user session information.
show users
Example:
Step 1
switch# show users
Clears a user Telnet session.
clear line vty-line
Example:
Step 2
switch(config)# clear line pts/12
Verifying the SSH and Telnet Configuration
To display the SSH and Telnet configuration information, perform one of the following tasks:
Purpose
Command
Displays the SSH server keys.
For Cisco NX-OS Release 7.0(3)I4(6) and 7.0(3)I6(1) and any later
releases, this command displays the fingerprint in SHA256 format by
default. SHA256 is more secure than the old default format of MD5.
However, the
md5
option has been added, if you want to see the
fingerprint in MD5 format for backward compatibility.
show ssh key
[
dsa
|
rsa
] [
md5
]
Displays the SSH and user account configuration in the running
configuration. The
all
keyword displays the default values for the SSH
and user accounts.
show running-config security
[
all
]
Displays the SSH server configuration.
show ssh server
Displays the Telnet server configuration.
show telnet server
Displays the public key for the specified user.
show username username keypair
Displays configured user account details.
show user-account
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
149
Configuring SSH and Telnet
Clearing Telnet Sessions