remote-ssh-kaggle-vscode

# Remote-SSH Kaggle using Visual Studio Code **Connect to a Kaggle notebook over SSH from VS Code — password auth, no SSH keys required.** Keep a 12-hour session running uninterrupted, use a real terminal and debugger, and work with `.py` files instead of notebook cells. SSH architecture VS Code connected to Kaggle over SSH

Why

Kaggle’s notebook interface is limiting once a project outgrows a few cells. Connecting over SSH gives you the full VS Code experience against Kaggle’s GPUs: integrated terminal, breakpoint debugging, and a normal file-based project layout.

It also lets you stretch GPU quota. The default is 30 hours per week — if you stop the notebook session near the end of hour 29 and SSH back in, you get roughly 12 more hours, for about 42 hours a week.

Features

And plenty more to explore once you are in.

How it works

The Kaggle notebook clones this repository and runs three small scripts — see SCRIPTS_GUIDE.md for the details of each:

Script Does
install_ssh_server.sh Sets the root password and installs OpenSSH + ngrok
add_ngrok_token.sh Registers your ngrok auth token
run_ssh_server.sh Opens an ngrok TCP tunnel to port 22

Contents


1. Prerequisites


2. Set up the Kaggle notebook


3. Configure SSH in VS Code


4. Using it


Tips and tricks

Where your files live

The Data panel on the right has two sections, and they map to different paths with different rules:

Section Path Writable Size limit
Input /kaggle/input/... ❌ Read-only ~107 GB private, unlimited public
Output /kaggle/working/... ✅ Your workspace ~20 GB


Conclusion

With Remote-SSH Kaggle and Visual Studio Code you get the full weight of Kaggle’s GPUs behind a development environment you actually enjoy using — a real terminal, a real debugger, and a normal project layout. Set it up once and the only thing you repeat between sessions is step 4.5.