NEWUse coupon code SMX20 to get 20% OFF your first billing cycle on any game server or VPS!Explore Store

VPS HOSTING

VPS Hosting for VS Code Server

Use Microsoft's VS Code Server on a VPS through Remote-SSH or Remote Tunnels: how it works, requirements, SSH setup, tunnels with GitHub or Microsoft sign-in, extensions on the remote side, port forwarding, licence limits, security, troubleshooting and sizing.

Many developers already use VS Code locally. Remote development keeps that familiar editor while moving code, language servers, compilers and containers to a VPS. It feels local, but builds run on server CPUs with fast NVMe storage, and your laptop stays cool and quiet.

How It Works

local VS Code (UI) ── SSH or tunnel ──▶ VS Code Server on VPS
                                         ├─ extensions (language servers, linters)
                                         ├─ terminals, tasks, debuggers
                                         └─ files, Git, Docker

The user interface stays on your device. Everything that reads files or runs tools happens on the VPS.

Option 1: Remote-SSH

  1. Create a non-root user on the VPS and set up SSH key authentication.
  2. Add a host entry in your local ~/.ssh/config with the user, host and key.
  3. Install the Remote-SSH extension in VS Code and connect to the host.
  4. VS Code downloads and starts the server on the VPS automatically, then opens a remote window.

Remote-SSH needs only the SSH port open. It is the simplest and most common setup.

Option 2: Remote Tunnels

Install the VS Code CLI on the VPS and run code tunnel. You sign in with a GitHub or Microsoft account, and the server registers a tunnel through Microsoft's relay. You can then connect from desktop VS Code or from a browser at vscode.dev, signed in with the same account, without opening inbound ports. Run the tunnel as a service so it survives reboots. Tunnels depend on Microsoft's relay service and its usage limits; check the current documentation.

Requirements

The server component supports common Linux distributions on x86_64 and ARM64 with a reasonably recent glibc; very old distributions may not be supported. Microsoft documents a low minimum of RAM, but real projects with language servers, Docker and builds need far more, as the sizing table shows.

Extensions on the Remote Side

Workspace extensions (language support, linters, debuggers) install on the server; UI extensions (themes, keymaps) stay local. Install language toolchains on the VPS itself. Recommended extensions in the repository's .vscode/extensions.json help the whole team get the same setup. Dev containers work too: open a folder in a container on the VPS for fully reproducible environments.

Port Forwarding

When your app starts on a port, VS Code forwards it to your local machine automatically, so localhost:3000 in your browser reaches the app on the VPS. Keep the server firewall closed to those ports. Forwarded ports can optionally be shared publicly through tunnels, but do so only deliberately and temporarily.

Licence Limits

VS Code Server is covered by Microsoft's licence terms, which allow using it for your own remote development but do not allow offering it as a hosted service to others. If you want a self-hosted browser IDE for a team or customers, open-source options such as code-server or OpenVSCode Server are the usual choices (see our code-server guide).

Security

  • SSH key authentication only; disable password and root logins.
  • Keep the VPS updated, and clear old cached server versions in ~/.vscode-server occasionally.
  • For tunnels, protect the GitHub or Microsoft account with two-factor authentication, since it grants access to the server.
  • Do not keep production credentials on development servers.
  • Review installed extensions; they run with your user's permissions on the server.

Troubleshooting

  • Connection hangs while setting up the host: check SSH access manually, disk space, and that the server can download the VS Code Server package.
  • High CPU from file watching: exclude large folders such as node_modules and build directories.
  • Disconnects: enable SSH keep-alives; terminals in tmux survive reconnections.
  • Out of memory: language servers for large projects can use several gigabytes; increase RAM or reduce open workspaces.

Sizing

ProjectSuggested plan
Small web or scripting projects2 vCores / 8 GB
Full-stack apps with Docker and databases4 vCores / 16 GB
Large TypeScript, Java, Rust or C++ codebases8 vCores / 32 GB

Choose a region close to you to keep typing and terminal latency low. For a broader view, see our remote development servers guide.

Using It Across a Team

Each developer connects to their own user or server with their own SSH key, so actions are traceable and access can be removed individually. Commit shared editor settings, recommended extensions and dev container definitions to repositories so everyone gets the same setup, and keep personal preferences in user settings. Push code to your Git server rather than relying on files left on the VPS (see our Git servers guide).

Example: A Freelance Developer

A freelancer works on several client projects from a lightweight laptop. Each project lives on a 4 vCore / 16 GB VPS, opened through Remote-SSH with dev containers. Databases run in Docker, ports are forwarded automatically, and code is pushed to the client's Git server daily. When travelling with only a tablet, the freelancer connects through a tunnel at vscode.dev.

Common Mistakes

  • Connecting as root.
  • Undersized servers that make language servers slow.
  • Opening app ports publicly instead of forwarding.
  • Offering VS Code Server to others as a hosted service, against its licence.
  • Forgetting two-factor on the account used for tunnels.

In Short

Use Remote-SSH for the simplest secure setup or Remote Tunnels when inbound ports are not possible, install toolchains on the VPS, forward ports, keep accounts and SSH secured, respect the licence, and size for your project.

ServoMix Plans for This Workload

VS Code Server itself is modest, but language servers, builds and containers add up. 4 vCores / 16 GB is comfortable for most projects; 8 vCores / 32 GB for large TypeScript, Java or C++ codebases.

AMD EPYC 7C13 VPS

Dedicated KVM vCores on AMD EPYC 7C13 (up to 3.70 GHz) with DDR4 ECC memory, NVMe SSD and an unmetered 1 Gbps port.

PlanvCoresRAMStorageNetworkPriceGood forBuy
SMX vPro XS (AMD EPYC)28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹420/moWebsites, small APIs, bots, staging and VPN serversOrder
SMX vPro S (AMD EPYC)416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹560/moWooCommerce, Node.js/Python backends, Docker Compose stacks, CI runnersOrder
SMX vPro M (AMD EPYC)832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹840/moProduction databases, high-traffic sites, multi-container appsOrder
SMX vPro L (AMD EPYC)1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹1,120/moLarge production workloads, SaaS platforms, analytics, in-memory cachesOrder

Intel Xeon Platinum 8269CY VPS

KVM VPS on Intel Xeon Platinum 8269CY (up to 3.80 GHz Turbo) with DDR4 ECC memory, NVMe SSD, full root access and an unmetered 1 Gbps port.

PlanvCoresRAMStorageNetworkPriceGood forBuy
SMX vCore XS (Intel Xeon)28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹270/moBusiness websites, small apps, scheduled jobs and botsOrder
SMX vCore S (Intel Xeon)416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,169/monthBusiness software, mid-size databases, several sites on one serverCheck stock
SMX vCore M (Intel Xeon)832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,249/monthERP/CRM stacks, heavier databases, multiple production appsCheck stock
SMX vCore L (Intel Xeon)1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,248/monthHigh-memory workloads and consolidated production serversCheck stock

Prices are monthly in INR as listed on the ServoMix store (verified 2026-11-14). Stock and final pricing are shown on the product page at checkout.

Frequently Asked Questions

What is VS Code Server?
The backend component that VS Code installs on a remote machine so the local editor can work with files and tools there.
Remote-SSH or Remote Tunnels?
Remote-SSH needs only SSH access and is simplest; tunnels avoid inbound ports by using Microsoft's relay with GitHub or Microsoft sign-in.
Do I need to install VS Code Server manually?
No. Remote-SSH installs it automatically; tunnels use the VS Code CLI on the server.
Can I use VS Code in a browser with my VPS?
Yes, through Remote Tunnels and vscode.dev, or with open-source tools like code-server.
Where do extensions run?
Workspace extensions run on the server; UI extensions such as themes run locally.
How do I open my app running on the VPS?
VS Code forwards ports automatically, so you can open it on localhost locally.
Can I host VS Code Server for my team or customers?
Microsoft's licence does not allow offering it as a hosted service; use code-server or OpenVSCode Server instead.
How much RAM do I need?
Microsoft lists a low minimum, but real projects typically need 8 to 16 GB or more.
Why is VS Code using high CPU on the server?
Often file watching of large folders; exclude node_modules and build outputs.
Which plan suits VS Code Server?
4 vCores / 16 GB for most projects; 8 vCores / 32 GB for large codebases.

Frequently Asked Questions

What is VS Code Server?

The backend component that VS Code installs on a remote machine so the local editor can work with files and tools there.

Remote-SSH or Remote Tunnels?

Remote-SSH needs only SSH access and is simplest; tunnels avoid inbound ports by using Microsoft's relay with GitHub or Microsoft sign-in.

Do I need to install VS Code Server manually?

No. Remote-SSH installs it automatically; tunnels use the VS Code CLI on the server.

Can I use VS Code in a browser with my VPS?

Yes, through Remote Tunnels and vscode.dev, or with open-source tools like code-server.

Where do extensions run?

Workspace extensions run on the server; UI extensions such as themes run locally.

How do I open my app running on the VPS?

VS Code forwards ports automatically, so you can open it on localhost locally.

Can I host VS Code Server for my team or customers?

Microsoft's licence does not allow offering it as a hosted service; use code-server or OpenVSCode Server instead.

How much RAM do I need?

Microsoft lists a low minimum, but real projects typically need 8 to 16 GB or more.

Why is VS Code using high CPU on the server?

Often file watching of large folders; exclude node_modules and build outputs.

Which plan suits VS Code Server?

4 vCores / 16 GB for most projects; 8 vCores / 32 GB for large codebases.

Was this article helpful?

Your feedback helps us continuously improve ServoMix guides.

Share this article

Know someone who may find this guide useful?

VS Code Server on a VPS: Remote-SSH and Remote Tunnels | ServoMix