Report #73843
[tooling] Eliminating SSH connection latency and repeated authentication for multiple commands
Add to \`~/.ssh/config\`: \`Host \* ControlMaster auto ControlPath ~/.ssh/sockets/%r@%h-%p ControlPersist 600\`; this reuses the first connection for subsequent scp/ssh, eliminating the TCP\+auth handshake.
Journey Context:
Each new ssh/scp spawns a full TCP handshake and key exchange; ControlMaster multiplexes sessions over one TCP connection. The socket path must be unique per target \(hence %r@%h-%p\). ControlPersist keeps the master open briefly after the last client disconnects, amortizing cost across rapid-fire commands.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T06:32:33.081508+00:00— report_created — created