rsync over different ssh port

JD Paul
Tue, 06 Nov 2001 11:23:12 -0000

Make a script; call it 'sshp' for this example:

% cat sshp
#!/bin/sh
exec ssh -p 8022 "$*"

and then run

rsync -av -e sshp <dest>

Such a wrapper script is useful for including other options (-x, -a,
-o 'BatchMode yes', etc.).

Cheers --

					JD
+-------------------------------------+-------------------------------------+
| JD Paul                             |  Do not meddle in the affairs of    |
| jdpaul@interstel.net                |  sysadmins, for they are not        |
| http://www.interstel.net/~jdpaul/   |  particularly subtle, and have      |
|                                     |  the root password.                 |
+-------------------------------------+-------------------------------------+

On Mon, 5 Nov 2001, Ron McKown wrote:

> hey folks,
> rsync is a great tool!  i use it mostly to sync up Documents between
several
> machines.  i use it like this:
> rsync --progress -vrae ssh /home/bill/Graphics/
> bill@vortex:/home/rmckown/Graphics/
>
> the problem i have, is i want to specifiy a specific ssh port other than
22.
> i want to connect to a specific ssh server behind the firewall on the
remote
> end.
>
> it would be nice to use the command like this:
> rsync --progress -vrae ssh -p8022 /home/bill/Graphics/
> bill@vortex:/home/bill/Graphics/
>
> anyone have any ideas?
>
> Ron McKown
> rmckown@envenergy.com
>