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]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux