Copying your public key to a remote server

Copying your public key (usually ~/.ssh/ to your remote server makes it possible to login over ssh without needing to remember your password. All the authentication is taken care of between the remote machine and your local one using private/public keys.

On your local machine simply run the following command on one line in a terminal

cat ~/.ssh/ | ssh [email protected] "cat >> .ssh/authorized_keys"