- On each remote server:
mkdir -p ~/.ssh; touch ~/.ssh/authorized_keys; chmod -R 700 ~/.ssh;
- On your local machine, make sure you have an ID generated (if not, see https://help.ubuntu.com/community/SSH/OpenSSH/Keys)
- Then on your machine:
cat .ssh/id_rsa.pub | ssh username@host "cat >> ~/.ssh/authorized_keys"
TODO: See if this works
ssh-copy-id 'user@remotehost' # Automatically installs your public key to the remote host (this is included in the openssh package)