Purpose
Command or Action
switch(config)# show sockets local port range
(15001 - 58000)
switch(config)# local port range (58001 - 63535)
and nat port range (63536 - 65535)
Configures the port.
ssh port local-port
Example:
Step 4
switch(config)# ssh port 58003
Enables SSH.
feature ssh
Example:
Step 5
switch(config)# feature ssh
Exits global configuration mode.
exit
Example:
Step 6
switch(config)# exit
switch#
Displays the security configuration.
(Optional)
show running-config security all
Example:
Step 7
switch# ssh port 58003
Copies the running configuration to the startup
configuration.
(Optional)
copy running-config startup-config
Example:
Step 8
switch# copy running-config startup-config
Clearing SSH Hosts
When you download a file from a server using SCP or SFTP, or when you start an SSH session from this
device to a remote host, you establish a trusted SSH relationship with that server. You can clear the list of
trusted SSH servers for your user account.
SUMMARY STEPS
1.
clear ssh hosts
DETAILED STEPS
Purpose
Command or Action
Clears the SSH host sessions and the known host file.
clear ssh hosts
Example:
Step 1
switch# clear ssh hosts
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
144
Configuring SSH and Telnet
Clearing SSH Hosts