sshd Authentication refused

Gordon Messmer yinyang at eburg.com
Fri Jul 16 07:01:23 UTC 2010


On 07/13/2010 11:16 AM, David Highley wrote:
> New install of Fedora 13 we get the following /var/log/secure entry when
> we ssh from a Fedora 12 system to the Fedora 13 system:
> Authentication refused: bad ownership or modes for file /home/dhighley/.ssh/authorized_keys

Post the permissions for all entries in the path:

ls -ld / /home /home/dhighley /home/dhighley/.ssh \
   /home/dhighley/.ssh/authorized_keys

For instance:

[gordon at herald:~]$ ls -ld / /home /home/gordon /home/gordon/.ssh 
/home/gordon/.ssh/authorized_keys
dr-xr-xr-x. 25 root   root   4096 Jul 14 09:25 //
drwxr-xr-x. 13 root   root   4096 Jan 26 13:41 /home/
drwxr-xr-x. 96 gordon gordon 4096 Jul 15 08:26 /home/gordon/
drwx------.  2 gordon gordon 4096 Jun 18 15:25 /home/gordon/.ssh/
-rw-r--r--.  1 gordon gordon 1226 Aug 21  2008 
/home/gordon/.ssh/authorized_keys

As far as I know, the rule is that group and others must not have write 
access to any item in the path.  The home directory, .ssh, and 
authorized_keys files must all be owned by the user logging in.


More information about the users mailing list