Fixing Frozen SSH Sessions After a Network Change With OpenSSH Multiplexing
Several SSH terminals may stop responding after switching Wi-Fi networks or connecting to a VPN because they share one multiplexed OpenSSH connection. Multiplexing reuses an authenticated master connection for multiple sessions, so they all depend on the same network path. It does not reconnect existing shells, so recovery requires retiring the old shared connection and establishing a new one. The article explains enabling multiplexing per host alias in the SSH config, and checking the master with ssh -O check, which only confirms the local control socket rather than end-to-end reachability. Before closing the master, users should consider whether other sessions still depend on it, since terminating it can interrupt them.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in