How to add id_dsa.pub to authorized_keys

  July 29, 2014

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:

ssh [email protected]

And log in without a password. If you don’t have any SSH key. You can create a new one doing this: