Fri Aug 14 13:36:57 PDT 2015

Rsync With a Non-Standard Port

Well, I found this slightly unintuitive. If you want rsync to use a specific non-standard port, and you don't have the rsync daemon running, you need to force ssh to use this port, like so:

rsync -ar --partial --progress --rsh='ssh -p 12345' username@xyz.abc.com:/path/to/your/files . 

(or you are going to get errors referring to port 22 despite your best efforts to avoid this port with --port=12345 or similar attempts at the appropriate argument which rsync does not actually support).

Comments are closed


If you would like to get in touch with me, please mail zfs at themolecularuniverse.com

recent comments

Posted by ZFS | Permanent link | File under: bash
[StumbleUpon] [Digg] [Reddit] [Facebook] [Google]