SSH login with no passwords for distributed program on red hat
Hello,
I'm using a program on a group of servers which contact each other using SSH. I've got the authentication keys setup with no password and the keys are on each box. But when one box tries to connect to another it wants the password for the user it's trying to communicate with. So the main problem is there is a lot of communicating within this program so it's important to allow each box communicate with each other without the use of a password. Does anyone have a solution? I'm using OpenSSH 4.3 with OpenSSL 0.9.8 on Red Hat Enterprise Linux Server 5.3 (Tikanga). I'm also using SSH on Ubuntu(Intrepid) to connect to these servers at the mo as i don't have direct access to the boxes. Thanks Chris Jemma |
Well either the preshared keys are working or they're not. you say it's "setup" which would suggest it's tested and working, no?
Not a networking question, moved to Linux - Newbie. |
Thanks, well i've found the problem now.
It was a mixture of permissions and sshd-config problems. If anyone wants a quick guild on how i eventually got password less access across the boxes then pm me and i'll send it to you. Thanks Chris Jemma |
Well these are guides already on this site for generic help. Personally I see most setups failing when the ownership of ~/.ssh is not set to 600.
|
chrisjemma,
I am looking for this details. Can you please get me the information to my mail id? |
It would be more in the spirit of LQ if you posted it here for the edification of all.
|
Well there are many many perfectly good guides around, including an excellent one in our Linux Answers section.
|
Passphraseless and Passwordless Guide
Just as a warning, it's not recomended that you set up passphraseless and passwordless SSH communication but this is how i did it. In this guide passphrase is referring to the SSH passphrase and password refers to the users password.
|
In case anyone's following these steps--beware typo
Note that in this point (last entry in Step 3 above), there's a hyphen where there should be an underscore:
It says Code:
cd $HOME .ssh/authorized_keys |
All times are GMT -5. The time now is 04:18 PM. |