ssh key
This example shows how to create an SSH server key using RSA with the default key length:
switch# configure terminal
switch(config)# ssh key rsa
generating rsa key(1024 bits).....
.
generated rsa key
This example shows how to create an SSH server key using RSA with a specified key length:
switch# configure terminal
switch(config)# ssh key rsa 1024
generating rsa key(1024 bits).....
.
generated rsa key
This example shows how to replace an SSH server key using DSA with the force option:
switch# configure terminal
switch(config)# no feature ssh
switch(config)# ssh key dsa force
deleting old dsa key.....
generating dsa key(1024 bits).....
.
generated dsa key
switch(config)# feature ssh
This example shows how to remove the DSA SSH server key:
switch# configure terminal
switch(config)# no feature ssh
XML interface to system may become unavailable since ssh is disabled
switch(config)# no ssh key dsa
switch(config)# feature ssh
This example shows how to remove all SSH server keys:
switch# configure terminal
switch(config)# no feature ssh
XML interface to system may become unavailable since ssh is disabled
switch(config)# no ssh key
switch(config)# feature ssh
Related Commands
Command
show ssh key
feature ssh
Cisco Nexus 7000 Series Security Command Reference
666
Description
Displays the SSH server key information.
Enables the SSH server.
S Commands