On this page
OpenSSH: SSH Connection Multiplexing
Since version 4.0, OpenSSH allows multiplexing several connections into one, which speeds up the connection time for subsequent logins.
This tip requires OpenSSH version 4.2 or higher to work.
Just add this to your ~/.ssh/config
file:
Host *
ControlMaster auto
ControlPath ~/.ssh/master-%r@%h:%p
All new connections to a host where you are already connected will go through this existing connection. In addition to speeding up connection time, this has the advantage of not prompting for passwords on subsequent connections.
Last updated 14 May 2007, 19:37 CEST.