-e —rsh Source https://unix.stackexchange.com/a/127355/482223 use the --rsh=COMMAND/-e flag rsync -e "ssh -i ~/.ssh/id_rsa" ...