How to use --rsh with multiple sub-arguments?

c.buhtz at posteo.jp c.buhtz at posteo.jp
Fri Oct 7 08:46:10 UTC 2022


Hello,

rsync does offer the --rsh argument. I would like to use it that way

rsync --rsh=ssh -o ServerAliveInterval=240 -o LogLevel=Error -o IdentityFile=/home/user/.ssh/id_rsa -p 22 --delete --delete-excluded -v -i / user at localhost:"/tmp/tmp6x75lz10"

You see there are several sub-arguments that need to be put to "ssh" via the "--rsh". How can I be sure that e.g. "-o ServerAliveInterval" is interpreted by ssh and not by rsync?



More information about the rsync mailing list