SSH without password using dsa keys
Posted: 04 Dec 2013 15:46
Hello everyone,
I am attempting to ssh into a 7750 SR router through a script running on a solaris 5620 SAM server. And, since ssh requires input from tty as a security feature (afaik), I can't just send a password through the script, I need to configure it to log in with dsa keys. I have generated a key pair on my local machine, and put the public key onto the router in cf3:/.ssh/authorized_keys/id_dsa.pub. I have set the permissions of id_dsa.pub, authorized_keys/, and .ssh/ to +r. The private key (id_dsa) resides in /opt/5620sam/server/.ssh.
From the sam server, I execute ssh -i /opt/5620sam/server/.ssh/id_dsa username@addr
However, it is still asking me to input a password.
Does anyone have an idea of what I might be doing wrong?
Thanks.
I am attempting to ssh into a 7750 SR router through a script running on a solaris 5620 SAM server. And, since ssh requires input from tty as a security feature (afaik), I can't just send a password through the script, I need to configure it to log in with dsa keys. I have generated a key pair on my local machine, and put the public key onto the router in cf3:/.ssh/authorized_keys/id_dsa.pub. I have set the permissions of id_dsa.pub, authorized_keys/, and .ssh/ to +r. The private key (id_dsa) resides in /opt/5620sam/server/.ssh.
From the sam server, I execute ssh -i /opt/5620sam/server/.ssh/id_dsa username@addr
However, it is still asking me to input a password.
Does anyone have an idea of what I might be doing wrong?
Thanks.