SUMMARY STEPS
1. configure terminal
2. no feature ssh
3. no ssh key [dsa | rsa | ecdsa]
4. exit
5. (Optional) show ssh key
6. (Optional) copy running-config startup-config
DETAILED STEPS
PurposeCommand 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
Deletes the SSH server key.no ssh key [dsa | rsa | ecdsa]
Step 3
Example:
The default is to delete all the SSH keys.
switch(config)# no ssh key rsa
Exits global configuration mode.exit
Example:
Step 4
switch(config)# exit
switch#
Displays the SSH server key configuration.(Optional) show ssh key
Example:
Step 5
switch# show ssh key
Copies the running configuration to the startup
configuration.
(Optional) copy running-config startup-config
Example:
Step 6
switch# copy running-config startup-config
Related Topics
Generating SSH Server Keys, on page 130
Clearing SSH Sessions
You can clear SSH sessions from the Cisco NX-OS device.
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
146
Configuring SSH and Telnet
Clearing SSH Sessions