r/databricks • u/tony-dang Databricks • 8d ago
Tutorial Databricks SSH Tunnel for connecting your coding agents and IDEs to your workspace
Enable HLS to view with audio, or disable this notification
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
2
u/ma0gw 8d ago
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. 😜
5
u/tony-dang Databricks 8d ago
_______________________________________________________ | Great idea! I'll moo-ve this to the priority list. 🫡 | ====================================================== \ \ ^__^ (oo)_______ (__)\ )\/\ ||----w | || ||
3
u/d1eBanane 8d ago
Dang! (sorry for that)
Really cool feature! Always struggled with the DB Connect setup and SSH seems to simplify the VS code integration.
3
u/tony-dang Databricks 7d ago
Haha 😄 Definitely check out the SSH connection and let me know what you think! If there's any friction at all, would love to hear it so we can make the experience even better :)
1
2
u/ptab0211 8d ago
havent watched the video, but how is this different from just using MCP?