Skip to main content
⚡ OpenDevDocs
Developer ToolsVS Code
toolsvscodeGuideIntermediate

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.

Verified: 2026-09-30
Tested on:vscode 1.93.x
Platforms:
linuxmacoswindows
#vscode#remote-ssh#linux#ssh#cloud

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!


On this page