You should check if you have (sshd_config) :
RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile %h/.ssh/authorized_keys UsePAM yes <-- That one is usually the last line of the sshd_config
Then that your public key is added to authorized_keys in your ~/.ssh/
. The last one (UsePAM yes
) is very important, since if disabled it will force you to authenticate with your unix account. PAM is here to say that private key authentication is sufficient to log in. Eventually, if that still don't resolves you may have to check the PAM configuration.