Couple of functiosn to manage ssh control connections.