Rsync and SSH on Windows
Andrew Gideon
c172driver99820 at tagonline.com
Sun Feb 20 16:01:19 GMT 2005
Lewis Franklin wrote:
> This works well as two separate processes. However, having read the
> documentation it seems that I should be able to run the ssh commands
> "inline" using the -e flag. However, I have not been able to
> successfully sync using this method.
[...]
>
> rsync -azve "ssh -l ssh_user proxy.example.com -i ssh_key 873:200.200.200.200:7000" rsync_user at 127.0.0.1::package .
Perhaps I'm missing something obvious, but why not simply:
rsync -azve "ssh" rsync_user at 127.0.0.1:package .
This doesn't involve two different users; the ssh stream will run as 'rsync_user'.
Also note the single colon.
It also doesn't specify the key-pair to use, but that can be moved to
a system-wide or user-specific ssh configuration file.
[Don't all more recent versions of rsync use ssh as transport by default?]
- Andrew
More information about the rsync
mailing list