specifying ssh port #?

Wayne Davison wayned at samba.org
Thu Aug 4 19:34:09 GMT 2005


On Thu, Aug 04, 2005 at 02:33:28PM -0400, Keith Warno wrote:
> 	is there a way to pass an SSH port # to rsync?

I agree with Jos that the best way is to use your .ssh/config file
(assuming you don't need multiple ports per hostname).  Otherwise,
use the -rsh (-e) option to rsync:

    -e 'ssh -p PORT'

..wayne..


More information about the rsync mailing list