"-signs in rsync as well as in embedded ssh command

Peter van der Meer w.p.vandermeer at student.utwente.nl
Fri Oct 21 14:10:35 GMT 2005


Quoting Matt McCutchen <hashproduct at verizon.net>:
> The trouble is that rsync parses the "-e" command into arguments, and it
> just splits at every whitespace character without regard for the inner
> quotes.  Maybe rsync should really be calling on a shell to parse the
> command.
> 
> I can think of two ways to work around this:
> 
> (1) Put the ProxyCommand option in your ~/.ssh/config so that SSH will
> use it automatically whenever you connect to targetcomputer.domain .
> 
> (2) If you don't want that, write a shell script like this:
>                 #!/bin/bash
>                 ssh -o "ProxyCommand corkscrew myhttpProxy 8080
> targetcomputer.domain 22" "$@"
> and supply the name of this shell script as the "-e" command.

Thanks Matt, the shell script indeed solves the problem.

Peter


More information about the rsync mailing list