VS Code: Remote - SSH Development
Complete guide to using the Remote - SSH extension in VS Code to edit files, run debuggers, and execute terminals on remote Linux servers and cloud VMs.
The Remote - SSH extension allows you to use your local VS Code UI while running extensions, language servers, terminals, and debuggers directly on a remote Linux server or cloud VM (AWS EC2, DigitalOcean, Hetzner).
How It Works
┌───────────────────────────┐ SSH Tunnel ┌───────────────────────────┐
│ Local Machine │ ─────────────────────────► │ Remote Linux Server │
│ - VS Code UI │ │ - VS Code Server Process │
│ - Theme & Keybindings │ │ - Compilers & Toolchains │
│ - Keyboard & Mouse Inputs │ │ - Source Code & Database │
└───────────────────────────┘ └───────────────────────────┘Setup & Connection
```ssh-config
Host dev-server
HostName 192.168.1.50
User ubuntu
IdentityFile ~/.ssh/id_ed25519
```Remote Port Forwarding
VS Code automatically detects listening network ports on the remote host (e.g. localhost:3000) and creates an encrypted local forward tunnel so you can test web apps at http://localhost:3000 in your local browser!
Related Guides
VS Code: Tasks Automation (`tasks.json`)
Complete guide to configuring automated build, test, and watch tasks in .vscode/tasks.json, task problem matchers, and keyboard shortcut triggers.
VS Code: Dev Containers Introduction
Complete introduction to Development Containers (.devcontainer/devcontainer.json), containerized toolchains, automated onboarding, and Docker isolation.