A simple setup for SSH connection multiplexing using ControlMaster, plus a watchdog script that checks the master connection and restarts it when needed.
Useful when you frequently create short-lived SSH sessions but want them to reuse one long-lived underlying SSH connection.
Add to: