rsync & ssh & a specific Port

jw schultz jw at pegasys.ws
Mon Apr 29 17:21:01 EST 2002


On Mon, Apr 29, 2002 at 06:53:54PM -0400, Administrator wrote:
> I am trying to use rsync over ssh to a specific port and am having no luck.  Any help would be greatly apprecaited.
> 
> This is what I have:
> 
> rsync --delete -rlogptvz -e ssh /tmp msa at apollo.xxx.com:/home/safe/backup/
> 
> If someone could show me how to tell rsync to use a specific ssh port I would really appreciate it.
> 
> Thank you.
> 
> Michael
> 

try 

rsync --delete -rlogptvz -e "ssh -p 2222" /tmp msa at apollo.xxx.com:/home/safe/backup/

or whatever the port number is.  I have used it myself.

Alternately you can set RSYNC_RSH like so:
export RSYNC_RSH="ssh -p 2222"
rsync --.......

-- 
________________________________________________________________
	J.W. Schultz            Pegasystems Technologies
	email address:		jw at pegasys.ws

		Remember Cernan and Schmitt




More information about the rsync mailing list