Run the following command on the local machine to append the public key to a remote machine. Replace your_username
and your_hostname
as appropriate.
cat ~/.ssh/id_rsa.pub | (ssh your_username@your_hostname "cat >> ~/.ssh/authorized_keys")
Original content. Random articles for random people.
Run the following command on the local machine to append the public key to a remote machine. Replace your_username
and your_hostname
as appropriate.
cat ~/.ssh/id_rsa.pub | (ssh your_username@your_hostname "cat >> ~/.ssh/authorized_keys")