Rsync via SSH on different port
Submitted by admin on Thu, 10/20/2011 - 20:19I wanted to use rsync to download files from a website to my local machine and do it through SSH. I have the SSH. But what do you do when you use a different port (as many companies do)?
Here is the tip I got from Mike Hostetlers blog. It helped me out so I wanted to reshare this.
rsync [options] -e "ssh -p #portnumber" sshuser@example.com:/path/to/files/ /local/path to files
Thanks Mike

