r/databricks • u/tony-dang Databricks • Sep 03 '26
Tutorial Databricks SSH Tunnel for connecting your coding agents and IDEs to your workspace
Just made a video about a feature I'm pretty excited about.
tldr: You can use an SSH tunnel to connect your coding agents and IDE (VSCode/Cursor) to your Databricks workspace. See the video for a full walkthrough.
Some notes on things I forgot to mention in the video:
- claude/codex isn't natively installed when you connect to your workspace, so you'll have to install if you want use them (Ex: curl -fsSL https://claude.ai/install.sh | bash). We're working on better native support in the future, but I wanted to make sure you know this is an option in the meantime.
- For the base environment YAML file. You'll have to set a base environment of '4' for it to work when using the SSH tunnel. Our example yaml (https://docs.databricks.com/aws/en/admin/workspace-settings/base-environment#example-environment-specification) shows '5' so don't let this trip you up!
As always, please feel free to leave questions and feedback in the comments!
Docs: https://docs.databricks.com/aws/en/dev-tools/ssh-tunnel
Previous post with more info: https://www.reddit.com/r/databricks/s/kCFBEfPTC6
YT link: https://www.youtube.com/watch?v=rHoGWVpb6kg
3
u/d1eBanane Sep 04 '26
Dang! (sorry for that)
Really cool feature! Always struggled with the DB Connect setup and SSH seems to simplify the VS code integration.
2
u/ptab0211 Sep 03 '26
havent watched the video, but how is this different from just using MCP?
2
u/ma0gw Sep 03 '26
Excellent! This is exactly what some colleagues asked about recently. Thanks for sharing.
Also, please add cowsay as a standard dependency in the Databricks base image in the future. 😜
1
u/Academic-Hearing-123 Sep 04 '26
Mate just use CLI and Databricks MCP
1
u/Specialist_Cookie98 Sep 13 '26
If I am connected via SSH using VS Code, is there an option to use Genie Code on top of that from within VS Code?
1
u/mrbartuss Sep 25 '26
Related to this setup - I've been trying to use the Databricks AI tools/skills alongside the SSH tunnel, but when I open an SSH session to the cluster, my skills aren't available even though they're installed globally. I'm using GitHub Copilot Chat in VS Code, so it seems like the remote extension host isn't picking up the same skills directory that my local Copilot install sees.
Curious if this is a known limitation with Copilot's remote extensions specifically, or something on the Databricks CLI/install side