Tim Allen on 21 Jul 2010 08:15:35 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Problems with password-less SSH - SOLVED


Using SSH with keys instead of password auth requires that the files
and directories have permissions set exactly. RedHat actually has a
pretty good walk through for OpenSSH here, if anyone else runs into
similar problems:

http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/custom-guide/s1-openssh-client-config.html

Regards,

-Tim

On Wed, Jul 21, 2010 at 11:12 AM, Kyle R. Burton <kyle.burton@gmail.com> wrote:
>> Jul 21 09:55:55 phaserv1 sshd[17334]: Authentication refused: bad ownership
>> or modes for directory /ftp-area/FileCollector
>>
>> All the home folders come under the /ftp-area for this server. And all have
>> group W permissions set (so that a job that executes as a specific user can
>> go into each of those home folders and clean them up).
>>
>> So the perms were
>>
>> drwxrwxr-x  3 FileCollector FileCollector 4096 Jul 21 08:56 FileCollector
>>
>> That was it - removing the group WRITE permission allowed SSH to work. So it
>> was a permissions issue, after all. Just not on the .ssh directory, or the
>> authorized_keys file ...
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug