On Wed, Jul 19, 2000 at 02:46:59AM +1000, Dave Dykstra wrote:
> On Wed, Jul 19, 2000 at 01:38:39AM +1000, Demicco, Matthew wrote:
> > This one's got me stumped, and I thought I knew the answer. I've been
> > rsyncing with -e ssh using --port=somenumber and assuming it was working.
> > However, I found out later it was always going to the standard ssh port
> > regardless. Is there a way to get rsync to use a different ssh port other
> > than 22? Thanks.
>
> rsync -e "ssh -p <number>"
Or, add a special configuration for that hostname to your
~/.ssh/config on the originating machine. For example
Host mywierdhost
Port 2202
HostName wierdhost.foo.com
Then
rsync -e ssh * mywierdhost:/bar
--
Martin Pool, Linuxcare, Inc.
+61 2 6262 8990
[EMAIL PROTECTED], http://www.linuxcare.com/
Linuxcare. Support for the revolution.
PGP signature