Copying your public key to a remote server

linux Dec 03, 2014

Copying your public key (usually ~/.ssh/id_rsa.pub) 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/id_rsa.pub | ssh [email protected] "cat >> .ssh/authorized_keys"

Tags

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.