Configuring SSH and Telnet
Disabling the SSH Server
By default, the SSH server is enabled on the Cisco Nexus 5000 Series switch.
To disable the SSH server to prevent SSH access to the switch, perform this task:
SUMMARY STEPS
1. switch# configure terminal
2. switch(config)# no feature ssh
3. switch(config)# exit
4. (Optional) switch# show ssh server
5. (Optional) switch# copy running-config startup-config
DETAILED STEPS
Command or Action
Step 1
switch# configure terminal
Step 2
switch(config)# no feature ssh
Step 3
switch(config)# exit
Step 4
switch# show ssh server
Step 5
switch# copy running-config startup-config
Deleting SSH Server Keys
You can delete SSH server keys after you disable the SSH server.
Note
To reenable SSH, you must first generate an SSH server key.
To delete the SSH server keys, perform this task:
SUMMARY STEPS
1. switch# configure terminal
2. switch(config)# no feature ssh
3. switch(config)# no ssh key [dsa | rsa]
4. switch(config)# exit
5. (Optional) switch# show ssh key
6. (Optional) switch# copy running-config startup-config
OL-20919-01
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.
Cisco Nexus 5000 Series NX-OS Security Configuration Guide
Disabling the SSH Server
67