I can imagine this could be a little tricky to answer but hopefully someone might be able to help. I have searched around and couldn't find much on this specific question.
Basically, I'm renting a dedicated server running CentOS 7 and so just trying to configure security. It's been a couple of years since I used any SSH and even then it was basic but I'm fumbling my way through.
I open up the SSH connection with Putty logging in as the root user. Created a new user, given a password and added it to the wheel group.
Then I have created, on my local machine, a public key using ssh-keygen from git for windows.
I added a password to the key when it asked me, again for verification.
Then I transferred the key over to the new user on the server, ran chmod on it and then altered the SSH daemon to not allow root log in.
I reloaded the sshd and tried a new connection. It doesn't let me log in as root, and it does as the new user, and it seems to have the correct privileges.
The question is, how do I know, when logging on, that it is checking the key and do you have any idea why it isn't asking me for the password for the key?
Any info would be appreciated.
Basically, setting it up, I followed this initial guide : https://www.digitalocean.com/community/tutorials/initial-server-setup-with-centos-7