I followed the instructions here and created a set of ssh keys (rsa) whilst logged into a vps as root. Encryption level 4096 as suggested...
The keys were already on the host so no need to transfer...
But the instructions fell apart at:
"You can make sure this worked by doing:"
ssh <username>@<host>
That's it, I don't understand what I need to do next. i.e. root@vpsIPaddress.
1 - Where do I do that? 2 - Can I use the same to login as a different user?
I cant get past this point as the instructions seem very unclear to me as to how I actually login using the keys instead of the password.
The lines below are in the sshd_config (but not sure what the ssh_config is for?)
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile %h/.ssh/authorized_keys
AuthorizedKeysFile /etc/ssh/rootuser/authorized_keys
In the home/ubuntu/.ssh directory there is an authorized_keys file too.
Hope that is enough info.
ssh user@ip -i private-key-file.pem
– You'reAGitForNotUsingGit Sep 09 '16 at 15:10