Configuring IOS devices for SSH using Public/Private RSA keys in Windows | (CCIE Notes)

Configuration on the IOS router:

hostname R1
ip domain-name networkology.net
!
crypto key generate rsa general-keys label SSH-KEYS exportable modulus 1024
crypto key encrypt write rsa name SSH-KEYS passphrase cisco123
!
ip ssh version 2
ip ssh rsa keypair-name SSH-KEYS
ip ssh pubkey-chain 
 username admin
 key-string
 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDiAYCMQauVa3SL4x256cWed7PCmSoO4Qq+ONaq
 CVlBtVK3deu7G2+JBdY3nn9YagpULOVJQv60irqpeo8UtC3Obwoz8mP4C/Y4AB7IP3AA
 X2QqbzboyRGFEvfqvNVT1diDVMrAe1TIXeiiFa/wogsR8oFxu1oR8NUUbPW9HS4BAw==
 exit
 exit
exit

– The RSA key is configured as exportable so you can copy and save it to a secure location for future use.
– The ‘key-string’ used under the username ‘admin’ is the public key of the users PC.

Continue reading

Advertisements