Chapter 19
Configuring SSH and Telnet
S e n d f e e d b a c k t o n x 5 0 0 0 - d o c f e e d b a c k @ c i s c o . c o m
To delete the SSH server keys, perform this task:
Command
Step 1
switch# configure terminal
Step 2
switch(config)# no ssh server enable
Step 3
switch(config)# no ssh key [dsa | rsa]
Step 4
switch(config)# exit
Step 5
switch# show ssh key
Step 6
switch# copy running-config startup-config
Clearing SSH Sessions
To clear SSH sessions from the Nexus 5000 Series switch, perform this task:
Command
Step 1
switch# show users
Step 2
switch(config)# clear line vty-line
Configuring Telnet
This section includes the following topics:
•
•
•
Enabling the Telnet Server
By default, the Telnet server is enabled. To disable the Telnet server on your Nexus 5000 Series switch,
perform this task:
Command
Step 1
switch# configure terminal
Step 2
switch(config)# telnet server disable
OL-16597-01
Clearing SSH Sessions, page 19-7
Starting Telnet Sessions to Remote Devices, page 19-8
Clearing SSH Sessions, page 19-7
Purpose
Enters configuration mode.
Disables the SSH server.
Deletes the SSH server key.
The default is to delete all the SSH keys.
Exits global configuration mode.
(Optional) Displays the SSH server configuration.
(Optional) Copies the running configuration to the
startup configuration.
Purpose
Displays user session information.
Clears a user SSH session.
Purpose
Enters configuration mode.
Disables the Telnet server. The default is
enabled.
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
Configuring Telnet
19-7