On Tue, Jun 20, 2017 at 08:36:22PM +0200, Frédéric Bron wrote: > >> -rw-------. 1 egreshko egreshko unconfined_u:object_r:ssh_home_t:s0 398 Jun 21 01:35 > >> authorized_keys > > > > Interesting, I have home_root instead of ssh_home. What does that > > mean? Does it mean that I created the .ssh directory as root, then > > chown it which is possible? > > I am totally unaware about selinux. Each time I hear about it, it is > > because I have a problem. I guess when it is useful, I do not see it. > > > > -r--------. 1 fred fred unconfined_u:object_r:home_root_t:s0 386 > > 2017-06-20 17:59 authorized_keys > > > that was the problem: > I removed .ssh, I let it be created by the system while try to ssh > localhost, then I created all the files again inside. > They now have unconfined_u:object_r:ssh_home_t:s0 context and I can ssh. > > Could you explain me what was the issue and how I could change it > without having to recreate everything? > > Thanks a lot, I was becoming totally crazy!! This command is probably the one you'd need: restorecon -rv ~/.ssh You should see output for any file getting relabled for SELinux. -- Paul W. Frields http://paul.frields.org/ gpg fingerprint: 3DA6 A0AC 6D58 FEC4 0233 5906 ACDB C937 BD11 3717 http://redhat.com/ - - - - http://pfrields.fedorapeople.org/ The open source story continues to grow: http://opensource.com _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx