Ubuntu 14.04LTS running openssh. I'm getting a Permission denied (public key) when I try to ssh in using my public key.
/var/log/auth.log shows "Could not open authorized keys '/home/wolfgeek/.ssh/authorized_keys': Permission denied"
HERE IS THE STRANGE PART!
If I do "ls -l /home/wolfgeek/.ssh/authorized_keys" or "stat /home/wolfgeek/.ssh/authorized_keys", I can then successfully log in via ssh. I have not changed the permissions on the file (600) nor on the .ssh directory (700). I have not modified the file, nor restarted sshd. All I do is stat the file and it starts working.
Any ideas?
/home/wolfgeek/.ssh
directory on an NFS volume? Or some other shared filesystem or unusual (for unix) filesystem type? It's possible that the OS is caching file attributes and not seeing changes to the file right away.