1. My SSH config

    Just in case you’re interested here’s my config. A great resource for some tricks with SSH (an amazing tool) is SSH Can do that?

    # Enable connection sharing
    ControlMaster auto
    ControlPath /tmp/ssh_mux_%h_%p_%r
    # Sometimes speeds up initial handshake
    GSSAPIAuthentication no
    Host *
        ForwardAgent yes 
        ForwardX11 yes 
    

    Note that connection sharing is not always appropriate. The first connection made to the remote server must be kept open - a logout / Ctl-D will appear to hang if other sessions are sharing this connection. If you force it closed (e.g. with Ctl-C) all other sessions will be terminated.