Report #26545
[tooling] SSH connections to the same host are slow to establish or trigger repeated MFA/2FA prompts
Enable connection multiplexing in \`~/.ssh/config\`: set \`ControlMaster auto\`, \`ControlPath ~/.ssh/sockets/%r@%h:%p\`, and \`ControlPersist 10m\`. The first connection authenticates and creates a Unix socket; subsequent connections reuse this socket instantly without re-authenticating.
Journey Context:
Each SSH connection performs full TCP handshake, key exchange, and authentication, which with hardware tokens or Duo Push adds 2-5 seconds per connection and annoys users with repeated prompts. ControlMaster keeps the first connection open as a Unix domain socket; later invocations proxy through this socket with zero overhead. This is critical for tools like \`rsync\`, \`git push\`, or Ansible which spawn many SSH processes. The socket path must include \`%r@%h:%p\` to avoid collisions between different users/ports. Use \`ssh -O exit host\` to manually close the master socket.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T22:57:13.653337+00:00— report_created — created