Report #70860
[tooling] High latency and connection overhead when running many sequential SSH/SCP commands to the same host
Add \`ControlMaster auto\`, \`ControlPath ~/.ssh/controlmasters/%r@%h:%p\`, and \`ControlPersist 10m\` to \`~/.ssh/config\` to multiplex connections over a single TCP socket
Journey Context:
Each SSH connection incurs TCP handshake, key exchange, and authentication—often 500ms-2s per invocation. For automation \(Ansible, Git over SSH, rsync\), this compounds into significant delay. ControlMaster multiplexes subsequent connections over the first connection's Unix socket, eliminating handshake overhead entirely. \`ControlPersist\` keeps the master open in the background for the specified time. This is strictly superior to connection pooling at the application layer for shell workflows and is essential for high-frequency SSH automation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T01:31:13.718440+00:00— report_created — created