Is this a potential selinux-policy bug when using ssh-copy-id?

Solution Unverified - Updated -

Issue

  • I just installed a new RHEL 6.3 system and used ssh-copy-id to get access via SSH keys. I couldn't get it working until I ran restorecon on "authorized_keys":
[root@hit-ipa01 .ssh]# ls -laZ authorized_keys
-rw-------. root root unconfined_u:object_r:admin_home_t:s0 authorized_keys

[root@hit-ipa01 .ssh]# restorecon authorized_keys                        

[root@hit-ipa01 .ssh]# ls -laZ authorized_keys                           
-rw-------. root root unconfined_u:object_r:ssh_home_t:s0 authorized_keys

Environment

  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.