ssh-keygen -t rsa -b 4096
(asuming destination SSH is up and configured for accepting keys)
cat ~/.ssh/id_rsa.pub
Copy file to a safe place to work with as RSync's --delete
flag is destructive if you mix the source and destinations up
cp -R source_directory ~/
cd ~/
rsync -ravz -e 'ssh -p PORT_NUMBER' --progress --delete source_directory dest_user@dest_url:/dest/path/