chainfear
asked on
passwordless cisco router SSH login
Hello,
How do I setup passwordless SSH authentication to login to my cisco router? Do I need k9 IOS?
Thanks!
How do I setup passwordless SSH authentication to login to my cisco router? Do I need k9 IOS?
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
If I want to write a script that do something with cisco router/switch,do I need to put the password in clear text? Is there anyway to avoid that? This is why I am asking for passwordless SSH into a router.
Thanks for all the efforts
Thanks for all the efforts
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Once you have setup key based auth, your connection would be in the form of user@host, no password is used.
the password is in effect the public key ssh key on the host that you are connecting from, so keeping the private key secure is important (usually in ~.ssh/ but no password is required to be in the script
@Kvistofta there is no password with key based auth see how the hash of the id_rsa.pub is used http://blog.ioshints.info/2009/10/ssh-rsa-authentication-works-in-ios.html
the password is in effect the public key ssh key on the host that you are connecting from, so keeping the private key secure is important (usually in ~.ssh/ but no password is required to be in the script
@Kvistofta there is no password with key based auth see how the hash of the id_rsa.pub is used http://blog.ioshints.info/2009/10/ssh-rsa-authentication-works-in-ios.html
Yes you are right but the effect is the same: The user running the script needs to have access to the private key.
Best regards
Kvistofta