Development12 min read•Updated November 2026

How to Set Up a Remote Linux Development Environment on a VPS

Quick answer

Create a non-root user with SSH key login, then connect from VS Code with the Remote-SSH extension (or JetBrains Gateway) so the editor runs locally while code, terminals and builds run on the VPS. Install your language toolchains and Docker on the server, use tmux for long-running sessions, and preview web apps through SSH port forwarding instead of opening ports. Keep code in Git, and back up anything not pushed.

A remote development environment puts your code, builds and test databases on a server instead of your laptop. You get a consistent Linux environment, more CPU and RAM than a light laptop, fast downloads on a data-centre connection, and the ability to pick up exactly where you left off from any computer. This guide sets one up securely in under an hour.

Why Develop on a VPS?

  • Same environment as production: Linux, the same package versions, the same filesystem behaviour.
  • Heavy work off your laptop: builds, containers and test suites run on server cores; your laptop stays cool and quiet.
  • Always on: long builds, data imports or test runs continue when your laptop sleeps.
  • Any device: a modest laptop or tablet with SSH becomes a capable workstation.
  • Onboarding: a scripted server setup gives every developer the same environment.

Trade-offs: you need a reliable internet connection, and latency to the server affects how terminals feel, so choose a server location close to you.

Step 1: A Secure User and SSH Keys

sudo adduser dev
sudo usermod -aG sudo dev
# from your computer
ssh-copy-id dev@SERVER_IP

Disable password and root login for SSH once key login works (see our SSH key guide), and enable the firewall with only SSH allowed (see our UFW guide). A development server often holds source code and credentials, so treat it like production.

Add a host alias on your computer in ~/.ssh/config:

Host devbox
    HostName SERVER_IP
    User dev
    IdentityFile ~/.ssh/id_ed25519
    ServerAliveInterval 30

Now ssh devbox connects, and editors can use the same alias.

Step 2: Connect Your Editor

VS Code Remote-SSH

Install the Remote - SSH extension, run "Remote-SSH: Connect to Host" and choose devbox. VS Code installs a small server component on the VPS; extensions such as language servers and debuggers run remotely, while the interface stays local. Open a folder on the server and work as usual.

JetBrains Gateway

JetBrains IDEs offer remote development through Gateway, which runs the IDE backend on the server. It needs more memory on the server than VS Code's component; allow several GB for larger projects.

Terminal editors

Neovim or Vim with your configuration works over plain SSH and uses very few resources.

Step 3: Toolchains

sudo apt update
sudo apt install -y build-essential git curl unzip tmux htop ripgrep

Install language runtimes per project with version managers, so different projects can use different versions:

  • Node.js: nvm or fnm
  • Python: pyenv or uv, with a virtual environment per project
  • Go and Rust: the official installers (go tarball, rustup)
  • Java: SDKMAN!

Step 4: Docker for Services

Run databases, caches and other services in containers, defined per project in a Compose file (see our Docker guide). Bind their ports to 127.0.0.1 only, so your development database is never exposed to the internet:

services:
  db:
    image: postgres:16
    environment:
      POSTGRES_PASSWORD: devpassword
    ports:
      - "127.0.0.1:5432:5432"

Docker's published ports bypass UFW rules, which is why binding to localhost matters.

Step 5: Preview Web Apps Safely

Do not open development ports in the firewall. Forward them over SSH instead:

ssh -L 3000:127.0.0.1:3000 devbox
# then browse http://localhost:3000 on your computer

VS Code forwards ports automatically when a process starts listening. To share a preview with a colleague, put it behind a password on a subdomain with HTTPS, or use a temporary tunnel service, and remove it afterwards.

Step 6: Keep Sessions Alive with tmux

tmux new -s work      # start a named session
# Ctrl-b d            # detach; processes keep running
tmux attach -t work   # reattach later, from any computer

Long builds, data imports and dev servers survive dropped connections and laptop sleep.

Step 7: Dotfiles and Reproducibility

Keep your shell, Git and editor configuration in a dotfiles repository and install it with a script. Combine it with a setup script (or Ansible) that installs packages and toolchains, so you can rebuild the server, or create one for a new teammate, in minutes. Dev containers (devcontainer.json) go further by describing the whole environment per project.

Step 8: Resources and Housekeeping

  • Memory: editor servers, language servers, containers and builds add up. Watch free -h; add a swap file as a safety net (see our swap guide).
  • Disk: Docker images and build caches grow quickly. Run docker system df and prune regularly.
  • Backups: push work to Git often; back up anything else you would miss (local databases, notes).
  • Secrets: use separate, limited credentials for development; never copy production keys to a dev server.

SkyRainCloud Plans for This Workload

Developers who compile large projects or run several containers benefit from 4–8 vCores and 16–32 GB. A single web project with an editor server and a database runs comfortably on 2 vCores / 8 GB. High-clock Ryzen plans suit single-threaded builds but are currently out of stock.

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
VPS 1 — AMD28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthWebsites, small APIs, bots, staging and VPN serversOrder
VPS 2 — AMD416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,299/monthWooCommerce, Node.js/Python backends, Docker Compose stacks, CI runnersOrder
VPS 3 — AMD832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,499/monthProduction databases, high-traffic sites, multi-container appsOrder
VPS 4 — AMD1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,899/monthLarge 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
VPS 1 — Intel28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthBusiness websites, small apps, scheduled jobs and botsOrder
VPS 2 — Intel416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,169/monthBusiness software, mid-size databases, several sites on one serverCheck stock
VPS 3 — Intel832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,249/monthERP/CRM stacks, heavier databases, multiple production appsCheck stock
VPS 4 — Intel1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,299/monthHigh-memory workloads and consolidated production serversCheck stock

AMD Ryzen 9 9950X VPS

High-clock KVM VPS on Ryzen 9 9950X (4.30 GHz base, 5.70 GHz boost) with DDR5 memory and NVMe SSD.

Currently out of stock. Check the product page for live availability.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — Ryzen28 GB DDR580 GB NVMe SSD1 Gbps, unmetered₹1,200/monthSingle-thread-heavy apps and game serversOut of stock
VPS 2 — Ryzen416 GB DDR5150 GB NVMe SSD1 Gbps, unmetered₹2,200/monthLatency-sensitive backends and build jobsOut of stock
VPS 3 — Ryzen632 GB DDR5200 GB NVMe SSD1 Gbps, unmetered₹4,299/monthHeavy compile, simulation and high-tick game workloadsOut of stock

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

Frequently Asked Questions

Can I use VS Code with a VPS?
Yes. The Remote - SSH extension connects to the VPS over SSH and runs extensions, terminals and debuggers on the server while the editor interface runs on your computer.
Is remote development slow?
Editing is local, so typing is not affected. Terminals and file operations depend on latency to the server, so choose a server close to you.
How do I view a web app running on the VPS?
Forward the port over SSH (ssh -L 3000:127.0.0.1:3000 devbox) or let VS Code forward it automatically, then open localhost in your browser.
Should I open development ports in the firewall?
No. Keep development services on localhost and use SSH port forwarding. Open ports expose unfinished, often unauthenticated, apps to the internet.
How much RAM does a remote dev server need?
8 GB suits an editor server, one project and a database. Multiple containers, large TypeScript or Java projects and JetBrains backends benefit from 16 GB or more.
What happens to my work if the SSH connection drops?
Files are safe on the server. Run long tasks inside tmux so they keep running and reattach when you reconnect.
Can several developers share one server?
Yes, with separate Linux users and resource limits, but individual servers avoid conflicts over ports, memory and toolchain versions.
Do I still need Git if my code is on a server?
Yes. Push regularly so your work is versioned and backed up off the server.
Is Docker required?
No, but it keeps project services such as databases isolated and reproducible. Bind container ports to 127.0.0.1 to keep them private.
Which SkyRainCloud plan suits a remote dev environment?
2 vCores / 8 GB for one project; 4–8 vCores with 16–32 GB for large builds, several containers or JetBrains Gateway. AMD EPYC and Intel plans are available; Ryzen is currently out of stock.
Instant UPI • ₹649/mo
Fast KVM Cloud Provisioning