I am trying to connect to my own CentOS server using SSH; I am able to connect fine with a password; I am trying to connect with my public key, but the server does not attempt public key authentication. I have followed all instructions on this page in the CentOS wiki, and verified the following things:
I am running CentOS 6.0 or later
My sshd_config has the following:
PermitRootLogin no PubkeyAuthentication Yes RSAAuthentication yes AuthorizedKeysFile .ssh/authorized_keys
I have created a private key in the .ssh/ folder in my home directory on the client
- The full text of the public key (generated by
ssh-keygen
) takes up a single line in the .ssh/authorized_keys file in my home directory on the server. I have the following permission modes set on both client and server:
chmod 700 .ssh chmod 600 .ssh/*