{ } Raw JSON

bundles / jupyter_client latest / jupyter_client / ssh / tunnel / open_tunnel

function

jupyter_client.ssh.tunnel:open_tunnel

source: /jupyter_client/ssh/tunnel.py:159

Signature

def open_tunnel(addr: str, server: str, keyfile: str | None = None, password: str | None = None, paramiko: Any = None, timeout: int = 60) → tuple[str, int]

Summary

Open a tunneled connection from a 0MQ url.

Extended Summary

For use inside tunnel_connection.

Returns

(url, tunnel) : (str, object)

The 0MQ url that has been forwarded, and the tunnel object

Aliases

  • jupyter_client.ssh.tunnel.open_tunnel