I have a new Centos 7 Linode and have been following this guide to secure:
https://www.linode.com/docs/security/se ... our-serverAdding a New UserWorks fine
Using SSH Key Pair AuthenticationIn a terminal on my Mac, changing example_user, IP address as appropriate:
ssh-keygen
scp ~/.ssh/id_rsa.pub
example_user@123.456.78.90:
In a terminal to my server
mkdir .ssh
mv id_rsa.pub .ssh/authorized_keys
chown -R example_user:example_user .ssh
chmod 700 .ssh
chmod 600 .ssh/authorized_keys
The guide says:
"The SSH keys have been generated, and the public key has been installed on your Linode. You’re ready to use SSH key pair authentication! To try it, log out of your terminal session and then log back in. The new session will be authenticated with the SSH keys and you won’t have to enter your account password."
I cannot get past this stage. Any new session
is not authenticated with the SSH keys. Any guidance what I am doing wrong?
Thanks