The easiest way to add a copy of your key to a remote server is with the following command:
cat ~/.ssh/id_rsa.pub | ssh [email protected] 'cat >> ~/.ssh/authorized_keys'
Then you should be able to do this:
And log in without a password. If you don’t have any SSH key. You can create a new one doing this: