Multiplexing allows a single SSH connection to be shared by multiple sessions. The connection could be set to persist for a set time and then reused for fast reconnection to the server.
Related: How to speed up SSH authentication
Sharing SSH sessions in a single connection via multiplexing could be configured in the user's SSH client configuration file.
$ vi ~/.ssh/config
* applies configuration for all hosts. Other possible host options:
example.com *.example.com 192.168.100.10 192.168.100.*
host * controlmaster auto
host * controlmaster auto controlpersist 10m
host * controlmaster auto controlpersist 10m controlpath ~/.ssh/muxmasters/%C
Create folder if doesn't exist.
$ mkdir -p ~/.ssh/muxmasters
$ ls ~/.ssh/muxmasters
$ ssh 192.168.111.159 -- hostname firstname.lastname@example.org's password: remotehost
$ ls ~/.ssh/muxmasters 598a7155ff90f076057fb265730c6ffe5997d4bb
$ ssh 192.168.111.159 -- hostname host
Should be without password and very fast as long as you log in again within the controlpersist time value.
Comment anonymously. Login not required.