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

Wayne Davison via rsync <[email protected]>
Newsgroups gmane.network.rsync.general
Message-ID <CAHSx_Ssc+XjYHGo+f=rJh3CuznZ4B8as+wbdQHnu2eB8XuY7vg@mail.gmail.com>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.