Yes, I'm aware questions like this already exist, and I've already checked quite a few out, but the methods were unable to help me. I am running CentOS 6 on my VPS. This error occurs when I try to log into the username while connecting with PuTTY.
I am trying to log into a user. The path is /home/[name]. Here are my sshd_config settings (it's not on default port):
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_key
PasswordAuthentication no
ChallengeResponseAuthentication no
The authorized_key contains the public key. I am relatively new to Linux, so any tips would be appreciated.
EDIT: I've tried adding the private key to PuTTY, and now it just says "Server refused our key", and the same error message pops up.
ls -l /home/user/.ssh/authorized_key
? Linux has strict requirements for permissions on that file. I always have it as 600.