1) Generate your keys on your local machine: - ssh-keygen -t rsa 2) When prompted for a password, do not enter one. This will generate a password-less key called id_rsa, and a public key id_rsa.pub 3) Copy the id_rsa.pub key over to the machine you want to ssh to. NOTE: change the filename first or you may overwrite your existing RSA key for your remote host. Like this: - local: cp id_rsa.pub local.key - scp local.key remote: - cat local.key >> .ssh/authorized_keys