Skip to content

CentOS 6 ignores public keys by default when SELinux is enforced

… which is quite obviously ridiculous.
Here’s a quick fix to restore public key login functionality without disabling SELinux:

# chmod 700 ~/.ssh
# chmod 600 ~/.ssh/*
Published inHowto'sLinuxSecurity


  1. Another reason you want to use Kerberos. Really, you do. 🙂

  2. Thanks for posting this. I was banging my head against the wall with this one. All the other results from Google were useless and a waste of time. Thanks again.

  3. Tom Tom

    Ah! Thanks for the update!

Leave a Reply

Your email address will not be published.

Time limit is exhausted. Please reload CAPTCHA.