LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 11-14-2008, 01:16 PM   #1
triley
Member
 
Registered: Oct 2003
Posts: 74

Rep: Reputation: 15
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.
 
Old 11-14-2008, 01:38 PM   #2
triley
Member
 
Registered: Oct 2003
Posts: 74

Original Poster
Rep: Reputation: 15
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
 
Old 11-14-2008, 02:01 PM   #3
triley
Member
 
Registered: Oct 2003
Posts: 74

Original Poster
Rep: Reputation: 15
/home/<user>/.ssh should be set to 700 NOT 755.
 
Old 11-14-2008, 03:07 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh passwordless login with network home folder vinayshivakumar Linux - Newbie 1 11-11-2008 05:27 AM
Cannot set up passwordless login via ssh slinx Linux - Software 5 09-19-2008 09:37 AM
Passwordless ssh isn't dcroxton Linux - Software 8 07-18-2008 12:16 PM
passwordless login on the same machine via ssh athreyavc Linux - Server 2 06-20-2008 12:12 AM
Passwordless SSH with SSH commercial server and open ssh cereal83 Linux - General 7 04-18-2006 12:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration