Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-14-2008, 01:16 PM
|
#1
|
|
Member
Registered: Oct 2003
Posts: 74
Rep:
|
Passwordless SSH login
Hello,
I have three systems, two running CentOS5.2, 32-bit and the third running CentOS5.2, 64-bit. I am trying to set up passwordless SSH logins between the three systems. Using SSH-KEYGEN I created a public and private rsa key on each system. I copied the public keys to a master AUTHORIZED_KEYS file and then distributed that file to all three machines in /home/<user>/.ssh/authorized_keys. The two CentOS5.2 32-bit systems can ssh into each other without having to enter a password. I can also ssh into the 32-bit CentOS systems from the 64-bit CentOS system without having to enter a password. However, when I try to ssh into the 64-bit system from either 32-bit system, I am prompted for a password. All three systems are running ssh protocol 2 and the sshd_config files are identical. SELinux is enabled, but it is enabled on all three systems. IPtables is disabled on all three systems. Any thoughts on why I keep getting prompted for a password? Thanks.
|
|
|
|
11-14-2008, 01:38 PM
|
#2
|
|
Member
Registered: Oct 2003
Posts: 74
Original Poster
Rep:
|
For anyone else having a similar problem, I had to set permissions on /home/<user>/.ssh to 755...
1. su -
2. cd /home/<user>
3. chmod 755 .ssh
|
|
|
|
11-14-2008, 02:01 PM
|
#3
|
|
Member
Registered: Oct 2003
Posts: 74
Original Poster
Rep:
|
/home/<user>/.ssh should be set to 700 NOT 755.
|
|
|
|
11-14-2008, 03:07 PM
|
#4
|
|
Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
ssh is very sensitive to permissions. I was on a thread recently where it didn't work properly because the permissions on the users home (/home/user) were 755 or similar.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:05 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|