Keep a master connection alive in the background.
Section: Connection Multiplexing
Enable connection persistence
bash
bash
ssh -o ControlMaster=auto -o ControlPersist=10m -o ControlPath=~/.ssh/cm-%r@%h:%p user@example.comExplanation
Keep a master connection alive in the background.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Connection Multiplexing
Start a master connection
Open a reusable control connection for later sessions.
Request forwarding changes on master
Add or adjust forwarding via an existing master connection.