[cfarm-users] Automated deployment across multiple cfarm hosts

Paul H. Hargrove phhargrove at lbl.gov
Thu Sep 12 03:30:23 CEST 2024


Peter,

Have a look at `ControlPath`, `ControlPersist` and similar in the ssh man
page.
With a non-zero Persist, this feature can be used to reuse an initial
connection several times, with `sshd` only participating in the initial
setup.

This is useful in my own testing infrastructure (in perl, fwiw) which runs
our regression suite on many CFarm systems (though we do also construct
fairly long chains of shell commands per-ssh, using `set -e` rather than
`&&` fwiw).

-Paul

On Wed, Sep 11, 2024 at 6:22 PM Peter Gutmann via cfarm-users <
cfarm-users at lists.tetaneutral.net> wrote:

> Peter Gutmann via cfarm-users <cfarm-users at lists.tetaneutral.net> writes:
>
> >I was hoping to open one SSH connection, run a sequence of commands, then
> >disconnect, in order to avoid hammering the servers with repeated SSH
> >handshakes.
>
> Forestalling the inevitable responses :-), I'm aware of the use of '... &&
> ...
> && ... && ...' but that's going to lead to a sort of one-liner-competition
> ssh
> command to pack everything into a single ssh exec.
>
> Peter.
> _______________________________________________
> cfarm-users mailing list
> cfarm-users at lists.tetaneutral.net
> https://lists.tetaneutral.net/listinfo/cfarm-users
>


-- 
Paul H. Hargrove <PHHargrove at lbl.gov>
Pronouns: he, him, his
Computer Languages & Systems Software (CLaSS) Group
Computer Science Department
Lawrence Berkeley National Laboratory
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tetaneutral.net/pipermail/cfarm-users/attachments/20240911/92f36d14/attachment-0001.htm>


More information about the cfarm-users mailing list