# On origin server ```shell ssh-keygen -f ~/.ssh/id_rsa -q -P "" cat ~/.ssh/id_rsa.pub ``` Copy and put that ssh key on destination server in (if don't exists, create it): `~/.ssh/authorized_keys` # Now, rsync ```shell rsync -avz -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --progress /var/www/claro/public/ root@107.170.127.55:/var/www/host/claro/public ``` source: https://www.digitalocean.com/community/tutorials/how-to-copy-files-with-rsync-over-ssh