(host, user, private_key)
Open a SSH connection with a SOCKS proxy.
Open a SSH connection with a SOCKS proxy.
Open a SSH connection with a SOCKS proxy .
def socks_proxy(host, user, private_key):
    """Open a SSH connection with a SOCKS proxy."""
    set_up = SocksProxyUp(host, user, private_key)
    tear_down = KillProcess('socks_proxy', PID_FILE)

    with environment_run(up=set_up, down=tear_down) as result:
        yield result
def socks_proxy ( host , user , private_key ) : set_up = SocksProxyUp ( host , user , private_key ) tear_down = KillProcess ( 'socks_proxy' , PID_FILE ) with environment_run ( up = set_up , down = tear_down ) as result : yield result