file permissions - Re: [CentOS] Re: 2 SSH questions

Johnny Hughes mailing-lists at hughesjr.com
Wed Jan 11 02:40:18 UTC 2006


On Tue, 2006-01-10 at 18:19 -0800, Robert Moskowitz wrote:
> Insight from /var/log/secure
> 
> Jan 10 20:28:56 z9m9z sshd[2705]: Authentication refused: bad 
> ownership or modes for file /home/rgm/.ssh/authorized_keys
> 
> So here are all of the permissions, I think:
> 
> starting at root:
> 
> drwxr-xr-x   3 root root  4096 Jan  5 13:33 home
> 
> drwx------  4 rgm rgm 4096 Jan 10 21:13 rgm
> 
> drwxrwxr-x  2 rgm  rgm  4096 Jan 10 20:28 .ssh
> 
> -rw-rw-r--  1 rgm rgm 1101 Jan 10 20:25 authorized_keys
> 
> so what now????
> 

.ssh needs to be 700

authorized_keys needs to be 400

chmod 700 .ssh

and 

chmod 400 authorized_keys
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.centos.org/pipermail/centos/attachments/20060110/9a0935c6/attachment.sig>


More information about the CentOS mailing list