SSH using public key authentication to IOS

SSH using public key authentication to IOS



Create a user:
username test priv 15 secret supers3cr3tn0bdyw1llgue55

You need to make sure this public key is trusted by our router.
ip ssh pubkey-chain
     username test
          key-string
               copy the entire public key as appears in the cat id_rsa.pub including the ssh-rsa and username@hostname.
               please note that some IOS versions will accept maximum 254 characters.
               you can paste multiple lines.     
          exit
     exit

Please also make sure that you generate RSA keys on Server larger than 768 bits.
You can also set SSHv2 on server side (although strictly speaking it's not required if you're using SSH 1.99)
 
ip ssh version 2
 
found at https://supportforums.cisco.com/document/110946/ssh-using-public-key-authentication-ios-and-big-outputs 

Comments

Popular posts from this blog

How to clean DB from old logs in Magento 1.x

Reduce (shrink) and resize raw disk at Proxmox

Apache 2.4 + mod_wsgi + Python 3.7 + Django installation on Centos 7.10