Deleting SSH Server Keys
To disable the SSH server to prevent SSH access to the switch, perform this task:
Procedure
Step 1
Step 2
Step 3
Step 4
Step 5
Deleting SSH Server Keys
You can delete SSH server keys after you disable the SSH server.
To reenable SSH, you must first generate an SSH server key.
Note
To delete the SSH server keys, perform this task:
Procedure
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Clearing SSH Sessions
To clear SSH sessions from the Cisco Nexus 5000 Series switch, perform this task:
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
274
Command or Action
switch# configure terminal
switch(config)# no feature ssh
switch(config)# exit
switch# show ssh server
switch# copy running-config
startup-config
Command or Action
switch# configure terminal
switch(config)# no feature ssh
switch(config)# no ssh key [dsa | rsa]
switch(config)# exit
switch# show ssh key
switch# copy running-config
startup-config
Configuring SSH and Telnet
Purpose
Enters configuration mode.
Disables the SSH server. The default is enabled.
Exits global configuration mode.
(Optional)
Displays the SSH server configuration.
(Optional)
Copies the running configuration to the startup
configuration.
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.
OL-16597-01