Multiplexing allows a single connection to be shared by multiple SSH sessions. You could also set the connection to persist for a set time and reuse it for fast reconnection.
Related: How to speed up SSH authentication
Sharing of multiple sessions for SSH 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 email@example.com'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.