I'm trying to switch all of my servers to ssh key auth logins. I have it working with some servers but for what ever reason my new centos server is not working correctly.
I am on windows and using putty.
I have enabled key auth in the sshd_config and restarted it.
I also have denied root logins and created a new user that I can log in with using a password.
I am logging in to the server with that user, creating a .ssh folder in my ~ dir and then creating an authorized_keys file can copying in my key. I then chmod the .ssh dir 700 and then the file 640.
I try to log in and get a rejected key message and then the password entry.
What am I doing wrong?
Here is my sshd_config https://gist.github.com/alexhackney/64a4c99b993505a9e44f Here is the secure log https://gist.github.com/alexhackney/90319feb853e18a2fd48
I ran the tail on secure then logged in and out on another window and ran the command again.