sshd will refuse to accept public key authentication if the user's home directory is group-accessible, even if
~/.ssh is set to 700? If the permissions on
~/.ssh are acceptable, why do the permissions on
I guess the reason is that if your home directory is writable by someone else, then a malicious user can create
Even if you already have a
However, on modern systems such trick is usually not possible due to
Whether chmod behaves one way or another depends on libc compilation options, and for the sake of security OpenSSH server is slightly paranoid.
Okay to fix this you could either go the insecure route and set