1. Make sure both ends have ssh key. If not, run: ssh-keygen -t rsa 2. At local machine, run: cat ~/.ssh/id_rsa.pub | ssh user@remotehost 'cat >> .ssh/authorized_keys'