[CentOS] ssh with shared home dir

Mike Hanby mhanby at uab.edu
Thu Oct 28 19:18:33 EDT 2010

Another thing to check is the permission for your $HOME, make sure you don't have group or other W permissions. Better yet:

chmod 700 $HOME


-----Original Message-----
From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of Todd Denniston
Sent: Monday, October 25, 2010 8:47 AM
To: CentOS mailing list
Subject: Re: [CentOS] ssh with shared home dir

Gordon Messmer wrote, On 10/24/2010 04:20 PM:
> On 10/22/2010 01:08 PM, Todd Denniston wrote:
> ...
>> 5) root_squash is in play
> ...
>> 2) Open up the _read_ perms on authorized_keys
>> 3a) IIRC you _may_ also have to open up the _read_ perms on ~/.ssh
>> 3b) IIRC you _may_ also have to open up the exec perms on ~/.ssh
> root_squash doesn't affect ssh key authentication.  The SSH server 
> performs key authentication as the UID requested.

Thanks, I was not aware of that before.

some more assumptions I don't think have been confirmed:
a) does The OPs _current_ private key match any of the _current_
.ssh/authorized_keys or .ssh/identity or .ssh/id_rsa
from the perspective of the client machine?

b) can the OP use the _current_ private key to ssh into while logged into either of the
machines?  i.e. are the keys setup correctly at all?

Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
CentOS mailing list
CentOS at centos.org

More information about the CentOS mailing list