databrickslabs / jupyterlab-integration

DEPRECATED: Integrating Jupyter with Databricks via SSH
Other
71 stars 12 forks source link

Connecting via private IP #28

Open Strauman opened 3 years ago

Strauman commented 3 years ago

We have a setup using VPN to connect to our databricks clusters. I want to be able to connect to the cluster using its private IP.

I've tried just changing the IP in the ssh config, but that gets overridden.

Any ideas?

bernhard-42 commented 3 years ago

@Strauman Does this mean you can ssh into the cluster from the terminal? Would

export SSH_TUNNEL=52.52.52.52:2222
dj <profile> -k

work for you? This will be used when creating the ssh config instead of the IP retrieved from the driver.

This was meant for cases where you use a ssh relay (i.e. cluster opens a connection to relay and your machine opens another connection to the relay. These will then be used as ssh tunnel, see https://github.com/databrickslabs/jupyterlab-integration/blob/master/docs/v2/frp.md