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

2022-10-07 Thread Wayne Davison via rsync
On Fri, Oct 7, 2022 at 1:46 AM c.buhtz wrote:

> You see there are several sub-arguments that need to be put to "ssh" via
> the "--rsh".
>

In addition to what Kevin said, I find it easier to put customizations into
the ~/.ssh/config file under a custom hostname (or the main hostname, as
you prefer).  For instance:

Host name1
Hostname localhost
Port 22
User username
ServerAliveInterval 240
LogLevel Error
IdentifyFile /some/path

At that point you can ssh and/or rsync to "name1" and all those options
auto-apply (you don't even need the "user@" bit). And rsync should default
to using ssh these days (though exporting RSYNC_RSH=ssh does make extra
sure of that).

..wayne..
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


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

2022-10-07 Thread Kevin Korb via rsync
You can put it all in quotes.  Also, if you are scripting you might find 
setting $RSYNC_RSH easier.


On 10/7/22 04:46, c.buhtz--- via rsync wrote:

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@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?



--
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
Kevin Korb  Phone:(407) 252-6853
Systems Administrator   Internet:
FutureQuest, Inc.   ke...@futurequest.net  (work)
Orlando, Floridak...@sanitarium.net (personal)
Web page:   https://sanitarium.net/
PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


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

2022-10-07 Thread c.buhtz--- via rsync
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@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?

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html