Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

39
  • 56
    Thank you very much for pointing out restorecon. I've been scratching my head at precisely this issue for a while now. Commented Dec 3, 2012 at 14:56
  • 42
    Oddly enough, I was having problems with an account a friend set up on his VPS getting pubkey auth working. I thought all the permissions were correct, but it's important to remember that /home/USER must be 700 or 755 Commented Jan 25, 2013 at 19:22
  • 18
    also, add -v to your ssh command to see what happens with that key. ssh -v user@host. Commented Feb 17, 2014 at 19:38
  • 6
    I also had to make sure my ~ itself, $HOME, was appropriately secure. It was originally 775 for some reason. chmod 700 $HOME did the trick. Commented Oct 3, 2015 at 13:39
  • 28
    chmod -R 700 ~/.ssh worked for me to meet the constraints of this answer (RHEL 7) Commented Nov 16, 2015 at 20:33