Score:1

pssh with ssh ProxyJump with multiplexing session re-use

us flag
THX

I have a list of nodes, that are accessible only through a bastion server. On these nodes, I would like to execute commands in parallel. So, I had been trying to use ssh -J flag or, respectively, the ssh_config ProxyJump option in combination with parallel ssh pssh.

To speed up re-connections, I am using ssh multiplexing

 ControlMaster auto
 ControlPersist 60m
 ControlPath /tmp/ssh-%i@%l_%r@%h:%p

However, something like

pssh -O [email protected] -p 5 -l root -h /tmp/nodes.lst 'echo $HOSTNAME'

fails and runs into timeouts.

Hard-wiring the node list in the ssh config is not really feasible, so that I am depending on a commandline compatible solution.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.