06-08-2015 02:04 AM - edited 03-08-2019 12:27 AM
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
06-08-2015 04:51 AM
- 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.
06-08-2015 05:16 AM
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
11-22-2017 02:15 AM
try "#show ssh key"
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide