Report #61464
[tooling] SSH connection overhead causing slow automated deployment scripts or repeated authentication prompts in git-over-SSH workflows
Use ssh -O check -S /path/to/socket user@host to verify multiplexed connections, or ssh -O exit to close persistent sockets, combined with ControlMaster auto and ControlPersist in ssh\_config for connection reuse
Journey Context:
Repeated SSH connections to the same host \(e.g., git fetch, rsync, Ansible\) renegotiate TCP and TLS each time, adding seconds per operation and triggering repeated MFA prompts. OpenSSH's ControlMaster creates a persistent socket for the first connection; subsequent invocations reuse the TCP connection instantly. The -O flag allows scripts to check socket status \(check\) or explicitly close it \(exit\), critical for ensuring connection hygiene in long-running automation. Without this, CI/CD pipelines suffer unnecessary latency and authentication friction.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T09:39:05.590131+00:00— report_created — created