Reuse an ssh connection

In .ssh/config file:

host *
  ControlMaster auto
  ControlPath ~/.ssh/ssh_mux_%h_%p_%r
ssh figures out if a shareable connection already exists for the host/port/username combination and uses that if possible.

Comments