/~r/sysadmin/ Have you tried turning it on and off again?

Speed up SSH latency with shared connections

I have been using these two configuration lines to speed up SSH latency:

Host my-server-name
  Hostname ...
  ControlMaster auto
  ControlPath ~/.ssh/ctl/%L-%r@%h:%p

Sharing a single TCP stream for multiple SSH sessions will improve performance for a lot of uses. I use a rsync-based sync daemon to push code to a VM or remote server, while I’m programming. Using an existing connection cuts down on the sync latency.