F13 new install: can't get ssh pubkey to work

Mike Williams dmikewilliams at gmail.com
Sun Jun 13 03:34:15 UTC 2010

On Sat, Jun 12, 2010 at 11:14 PM, sean darcy <seandarcy2 at gmail.com> wrote:
> On 06/12/2010 02:37 AM, Konstantin Svist wrote:
> How do I "Check/fix the selinux flags for your authorized_keys"?
>From $HOME do:

restorecon -R -v  .ssh

Pretty sure that will do that trick.

By the way earlier in this thread there was this:
> On 06/11/2010 06:33 PM, sean darcy wrote:
>> New install of F13.
>> drwx------.  2 root root  4096 Jun 11 20:22 .ssh
>> ls -l /root/.ssh
>> total 12
>> -rw-------. 1 root root 1006 Jun 11 20:23 authorized_keys

If you use the Z flag with -ls it will show the selinix secutiry context:

[mike at smokey ~]$ ls -lZ .ssh
-rw-------. mike mike unconfined_u:object_r:ssh_home_t:s0 id_rsa
-rw-r--r--. mike mike unconfined_u:object_r:ssh_home_t:s0 id_rsa.pub
-rw-r--r--. mike mike unconfined_u:object_r:ssh_home_t:s0 known_hosts

Try doing this before and after you use restorecon.

see: man restorecon and man ls for more info.



More information about the users mailing list