cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5460
Views
12
Helpful
3
Replies

exchange RSA key on Nexus 5548

Thomas.Meyer
Level 1
Level 1

We are trying to raise the key size of the RSA key of a Nexus 5548 switch, but get the following error:

myswitch# conf t
Enter configuration commands, one per line.  End with CNTL/Z.
myswitch(config)# ssh key rsa 2048 force
deleting old rsa key.....
ssh server is enabled, cannot delete/generate the keys
myswitch(config)#

I cannot find this message in the Messages Guide, nor can I find it in the docs.

Thanks for any hints,

 

Tom

 

 

 

3 Replies 3

marce1000
Hall of Fame
Hall of Fame

 

 - Try re-initalizing SSH using :

switch(config)# no feature ssh

 switch(config)# no ssh key [dsa | rsa] 

 switch(config)# feature ssh

 switch(config)# ssh key rsa 2048 force

 

M.



-- Each morning when I wake up and look into the mirror I always say ' Why am I so brilliant ? '
    When the mirror will then always repond to me with ' The only thing that exceeds your brilliance is your beauty! '

Thanks, I got "Can't disable/re-enable ssh:Current user is logged in through ssh"

Which I could solve through enabling telnet, logging in with telnet, and then doing

no feature ssh
ssh key rsa 2048 force
feature ssh

Question: how can I verify that key: the command "show crypto key mypubkey rsa" has an empty output.

Regards, Tom

 

try "#show ssh key"