Speed Up Repeated SSH Connections with Connection Multiplexing
Reuse one SSH TCP connection for multiple sessions to the same host with OpenSSH ControlMaster and ControlPersist.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Reuse one SSH TCP connection for multiple sessions to the same host with OpenSSH ControlMaster and ControlPersist.
SSH ControlMaster multiplexing lets scripts and Git operations reuse one authenticated connection, cutting repeated handshake latency and server load.
An architecture note on SSH connection multiplexing via ControlMaster: outlines requirements, minimal configuration, trust boundaries, operational verification steps, failure modes, and triggers for redesign.
Goal Configure OpenSSH to reuse a single TCP connection for multiple user sessions, aiming to reduce per‑session latency under concurrent requests. Constraints and Uncertainty OpenSSH exposes ControlMaster , ControlPath , and ControlPersist to enable multiplexing, but the only documented limit is MaxSessions (default 10). It is not specified whether this lim