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

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

 



On Sat, Jun 12, 2010 at 11:14 PM, sean darcy <seandarcy2@xxxxxxxxx> 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@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.

Cheers,

Mike
-- 
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