SSH Multiplexing Check The Status of The Connection

Fig.01: SSH Multiplexing Check The Status of The Connection

Fig.01: SSH Multiplexing Check The Status of The Connection

You can use the following command to verify the ssh multiplexing connection:
lsof -U | grep master
Sample outputs:

ssh       17396 veryv    4u  unix 0x6c9751158a54664b      0t0      /Users/veryv/.ssh/master-nixcraft@192.168.1.219:22.UWrdbq5yUWaCZWwC
ssh       17396 veryv    5u  unix 0x6c9751158b58332b      0t0      /Users/veryv/.ssh/master-nixcraft@192.168.1.219:22.UWrdbq5yUWaCZWwC
ssh       17402 veryv    5u  unix 0x6c9751158fd8696b      0t0      /Users/veryv/.ssh/master-root@v.server1:22.HOwN4G7A8iGbx41f
ssh       17402 veryv    6u  unix 0x6c9751158b584523      0t0      /Users/veryv/.ssh/master-root@v.server1:22.HOwN4G7A8iGbx41f

Another option:
ssh -O check server-name-here
ssh -O check user@host
ssh -O check root@v.server1

Sample outputs:

Master running (pid=17402)

Examples and usage: Linux / Unix: OpenSSH Multiplexer To Speed Up OpenSSH Connections