SSH Ignores My Key
Key login fails and the server log says Authentication refused: bad ownership or modes for directory /home/ana. What's wrong?
Authentication refused: bad ownership or modes for directory /home/ana
Choose one answer
The public key is in the wrong format for the server.
PermitRootLogin is set to no in sshd_config, which blocks keys for every user.
PermitRootLogin
no
sshd_config
The user's password has expired.
The home directory is writable by others, so sshd refuses the keys.