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" [EMAIL PROTECTED]::package .

Perhaps I'm missing something obvious, but why not simply:

        rsync -azve "ssh" [EMAIL PROTECTED]: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
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to