Report #7993
[tooling] Multiple SSH commands to the same host open redundant connections causing latency and auth fatigue
Enable connection multiplexing: \`ssh -o ControlMaster=auto -o ControlPath=~/.ssh/cm\_socket/%h-%p-%r -o ControlPersist=10m user@host\`. Subsequent SSH commands reuse the TCP connection instantly without re-authenticating.
Journey Context:
Scripts doing \`scp\` then \`ssh\` then \`rsync\` open 3\+ TCP/TLS handshakes and auth rounds \(especially with 2FA/Yubikey\). This is slow and wears out hardware tokens. ControlMaster creates a single persistent socket; subsequent processes negotiate via the UNIX socket instead of new TCP. People often use \`ProxyJump\` \(which is related but different\) or SSH config files without ControlMaster. The tradeoff is socket file security \(must be protected\) and stale sockets \(use \`ControlPersist\` with timeout or \`ControlMaster=no\` to check\). This is essential for automation using short-lived commands.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T04:17:31.260504+00:00— report_created — created