4 ms·
> vim /home/deploy/.ssh/authorized_keys [and] Add the contents of the id_rsa.pub on your local machine and any other public keys that you want to have access
by bnegreve 14y ago
> vim /home/deploy/.ssh/authorized_keys
[and] Add the contents of the id_rsa.pub on your local machine and any other public keys that you want to have access to this server to this file.
Cool trick: use ssh-copy-id <server> from the client machine.
From the man page:
ssh-copy-id - install your public key in a remote machine's authorized_keys
It is much easier than editing the remote .ssh/authorized_keys file since copying and pasting the key is error prone due to extra new lines typically added by the terminal emulator.