Have you ever received the following when you were trying to ssh into a Cisco PIX or ASA?
ssh_rsa_verify: RSA modulus too small: 512 < minimum 768 bits
key_verify failed for server_host_key
Then you may find the following Cisco commands handy to remember…
To examine the device’s currently installed ssh key.
sh crypto key mypubkey rsa
To reset the key to zero.
crypto key zeroize rsa
Finally to generate a new key of an appropriate length.
crypto key generate rsa modulus 1024 noconfirm
I hope this helps someone out there.
m
Nilay says
That was indeed useful. I tried various commands and was about to open a case with Cisco. Luckily i got this link and was able to rectify the error on my Cisco router!
Thanks again.
Mikel King says
Thank you for taking the time to leave a comment. I am glad that you were able to find your solution here.
Cheers,
Mikel