Search code examples
linuxsshkeyauthorized-keys

Still getting password prompt after configuring ssh keys


I am trying to connect to a remote server without a password and i followed the instructions on this link exactly (http://kb.mediatemple.net/questions/1626/Using+SSH+keys+on+your+server) , I also checked the sshd_config file

 SAAuthentication yes
 PubkeyAuthentication yes
 AuthorizedKeysFile      %h/.ssh/authorized_keys

However i still get password prompt when i try to log in. Any help ?


Solution

  • Check for your ~/.ssh directory and/or id_rsa/id_dsa file permissions. Your ~/.ssh directory should be 700 and your private key files should be 600.