Authentification SSH RSA (IOS release 15.0M)
Source: http://blog.ioshints.info/2009/10/ssh-rsa-authentication-works-in-ios.html
Enfin une solution pour utiliser les clés RSA avec nos routeurs Cisco:
R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#ip ssh pubkey-chain
R2(conf-ssh-pubkey)#username pipi
R2(conf-ssh-pubkey-user)#key-string
R2(conf-ssh-pubkey-data)#$AAQEA6jYlf9MBskhkWov+ZOUDKun0ExQIRj1zfWA/YciO02VS
R2(conf-ssh-pubkey-data)#$XsxM7SqNkRSQOR7y7HBMoxTHV7o+R/uS6A8/mF0A3P/ScRjct
R2(conf-ssh-pubkey-data)#$JrNGACGaFy1njD9PrrvrU4o4hx6XDr6xVXF4sP4OCSXIn+Cp8
R2(conf-ssh-pubkey-data)#$bCnZLmv908AeDb1Ac4nPdsn1OhCPIg6fxZjB7DvAMB8Dbr+7Y
R2(conf-ssh-pubkey-data)#$apEbGE94luIqnBc61HsMd6JCWbQ== pipi@fedi.nil.si
R2(conf-ssh-pubkey-data)#exit
R2(conf-ssh-pubkey-user)#^Z…
and let the router convert it into the key hash, which is stored in the configuration:
R2#show run | section ssh
ip ssh rsa keypair-name SSH
ip ssh version 2
ip ssh pubkey-chain
username pipi
key-hash ssh-rsa C20B739F2645D6850C591C6A11780CB5 pipi@fedi.nil.si
After this simple step, you can log into your router without typing the password.
Finally we have a manageable way of secure remote command execution.
- Vous devez vous identifier ou créer un compte pour écrire des commentaires
... et un peut de pub pour payer l'hébergement ;)