Disabling the SSH Server
By default, the SSH server is enabled on the Cisco NX-OS device. You can disable the SSH server to prevent
SSH access to the switch.
SUMMARY STEPS
1.
configure terminal
2.
no feature ssh
3.
exit
4.
(Optional)
show ssh server
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
switch(config)#
Disables SSH.
no feature ssh
Example:
Step 2
switch(config)# no feature ssh
Exits global configuration mode.
exit
Example:
Step 3
switch(config)# exit
switch#
Displays the SSH server configuration.
(Optional)
show ssh server
Example:
Step 4
switch# show ssh server
Copies the running configuration to the startup
configuration.
(Optional)
copy running-config startup-config
Example:
Step 5
switch# copy running-config startup-config
Deleting SSH Server Keys
You can delete SSH server keys on the Cisco NX-OS device after you disable the SSH server.
To reenable SSH, you must first generate an SSH server key.
Note
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
145
Configuring SSH and Telnet
Disabling the SSH Server