Report #39855
[tooling] Slow repeated SSH connections for git operations or remote commands causing delays
Add to \`~/.ssh/config\`: \`Host \*\` \(or specific host\) with \`ControlMaster auto\`, \`ControlPath ~/.ssh/sockets/%r@%h:%p\`, and \`ControlPersist 10m\`. This reuses connections, eliminating handshake latency for subsequent operations.
Journey Context:
Every \`git fetch\`, \`rsync\`, or \`ssh\` command establishes a new TCP connection and performs key exchange/authentication. For automated scripts or frequent operations, this overhead accumulates significantly. ControlMaster multiplexes multiple sessions over a single authenticated connection, similar to HTTP/2 multiplexing. The \`auto\` setting creates the master implicitly. The \`ControlPath\` must be a directory writable only by the user \(chmod 700\). \`ControlPersist\` keeps the master open in the background after the last client disconnects, trading a small amount of server memory for instant subsequent connections.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T21:22:14.780496+00:00— report_created — created