specifying ssh port #?

Jos Backus jos at catnook.com
Thu Aug 4 18:49:47 GMT 2005


On Thu, Aug 04, 2005 at 02:33:28PM -0400, Keith Warno wrote:
> Perhaps this is a lame question, but...
> 
> 	is there a way to pass an SSH port # to rsync?
> 
> At least one way I can do it is to use a small shell wrapper around ssh
> and pass the port # thru the environment.  Just wondering if there is an
> easier way that I magically can't find.
> 
> The reason for this is primarily because I find myself having to copy
> files between some local host and some remote host that is behind a
> firewall so I wind up using an ssh tunnel.


What about sticking something like this in ~/.ssh/config (assuming Unix):

    Host remotehost
	Port 2222

?

-- 
Jos Backus
jos at catnook.com


More information about the rsync mailing list