A "managed" SSH session. When the session is ready, we'll invoke the 
    "ssh_cb" callback.

def connect_ssh_with_cb(ssh_cb, user, host, auth_cb, allow_new=True, 
                        verbosity=0):
    """A "managed" SSH session. When the session is ready, we'll invoke the 
    "ssh_cb" callback.
    """

    with connect_ssh(user, host, auth_cb, allow_new=True, verbosity=0) as ssh:
        ssh_cb(ssh)