Purpose
Command or Action
Enables all supported PubkeyAcceptedKeyTypes which
are the public key algorithms that the server can use to
authenticate itself to the client.
(Optional)
ssh keytypes all
Example:
switch(config)# ssh keytypes all
Step 5
Supported key types are:
• ecdsa-sha2-nistp256
• ecdsa-sha2-nistp384
• ecdsa-sha2-nistp521
• ssh-dss
• ssh-rsa
Changing the Default SSH Server Port
Beginning with Cisco NX-OS Cisco Release 9.2(1), you can change the SSHv2 port number from the default
port number 22. Encryptions used while changing the default SSH port provides you with connections that
support stronger privacy and session integrity
SUMMARY STEPS
1.
configure terminal
2.
no feature ssh
3.
show sockets local-port-range
4.
ssh port local-port
5.
feature ssh
6.
exit
7.
(Optional)
show running-config security all
8.
(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
Displays the available port range.
show sockets local-port-range
Example:
Step 3
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
143
Configuring SSH and Telnet
Changing the Default SSH Server Port