Re: sshd Authentication refused

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

 



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@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.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux