https://frankenbyte.tumblr.com/post/33747851865/faster-github-using-ssh-multiplexing
No multiplexing
graph TD Client[SSH Client] subgraph "Connection 1" Socket1[Socket<br/>:random → :22] Session1[SSH Session 1] end subgraph "Connection 2" Socket2[Socket<br/>:random → :22] Session2[SSH Session 2] end Server[SSH Server] Client --> Socket1 Socket1 --> Session1 Session1 --> Server Client --> Socket2 Socket2 --> Session2 Session2 --> Server style Client fill:#e1f5ff style Server fill:#ffe1e1 style Socket1 fill:#fff3cd style Socket2 fill:#fff3cd style Session1 fill:#d4edda style Session2 fill:#d4edda
Multiplexing
graph TD Client[SSH Client] subgraph "Master Connection" Socket[Socket<br/>:random → :22] Master[Master SSH Connection] end subgraph "Multiplexed Sessions" Session1[SSH Session 1] Session2[SSH Session 2] end Server[SSH Server] Client --> Socket Socket --> Master Master --> Session1 Master --> Session2 Session1 --> Server Session2 --> Server style Client fill:#e1f5ff style Server fill:#ffe1e1 style Socket fill:#fff3cd style Master fill:#cfe2ff style Session1 fill:#d4edda style Session2 fill:#d4edda