Report #14356
[tooling] SSH automation scripts hang or fail under concurrent execution due to connection overhead
Configure in \`~/.ssh/config\`: \`ControlMaster auto\`, \`ControlPath ~/.ssh/controlmasters/%r@%h:%p\`, \`ControlPersist 10m\`. Critically, ensure the directory exists first with \`mkdir -p ~/.ssh/controlmasters && chmod 700 ~/.ssh/controlmasters\`.
Journey Context:
Without ControlPersist, each SSH command opens a new TCP connection \(slow for automation\). \`ControlMaster auto\` enables connection multiplexing, but if the \`ControlPath\` directory doesn't exist, SSH silently fails to create the socket or blocks indefinitely. The socket permissions must be 700 to prevent other users from hijacking the privileged connection via the filesystem.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T21:19:50.222641+00:00— report_created — created