VS Code Remote SSH Alternative for a Small VPS: What to Use
VS Code Remote SSH wants 1 GB+ RAM and a server of its own on the host. Here is how to measure it, trim it, and which lighter alternatives fit a small VPS.
If VS Code Remote SSH is too heavy for your small VPS, use a tool that puts less on the server. A local editor that reads and writes over SFTP works well, as does vim over plain SSH or an sshfs mount. Zed's remote mode sits in the middle. Remote SSH installs a full VS Code Server and runs most extensions on the host. We build DockLab, which pairs an SSH terminal with an SFTP-backed editor, but these trade-offs apply to every tool.
Quick answer
- Need language features on a real codebase: keep Remote SSH (2 GB RAM or more) or try Zed's remote mode. Both run a server binary and language servers on the host.
- Mostly editing config, scripts and small apps: use an SFTP-backed editor. Nothing new runs on the server beyond
sshdand its SFTP subsystem. - One-line fixes: use
vimornanoover SSH, orvim scp://host//pathfrom your own machine. - Want your local tools on remote files: mount with
sshfs, but not for production config you can't afford to half-write. - Before switching: measure
~/.vscode-serverand trim extensions. The problem is sometimes one extension, not Remote SSH itself.
Why Remote SSH feels heavy on a 1 GB VPS
Remote SSH is not a thin file browser. Per the official Remote SSH docs, the extension "will install VS Code Server on the remote OS", and while themes and snippets stay local, most other extensions run on the SSH host. The same page says "1 GB RAM is required for remote hosts, but at least 2 GB RAM and a 2-core CPU is recommended."
So on a 1 GB droplet that's already running Nginx, a database and your app, the editor is competing with production for memory. In practice, these are what cost you:
- The server process itself, plus a file watcher over the folder you opened. Open
~or/and it watches everything. - Language servers and linters from your extensions. A TypeScript or Python extension running on the host is a long-lived process with its own memory.
- Search and indexing across
node_modules,vendoror log directories.
There are also hard requirements. The Linux prerequisites page lists kernel 4.18+, glibc 2.28+ and libstdc++ 3.4.25+. It marks Ubuntu 18.04, Debian 9 and CentOS 7 as unsupported, and says Alpine isn't supported for Remote SSH. The troubleshooting guide adds that the remote needs internet access to download the server and extensions, unless you change how the server gets installed. On an old or locked-down box, Remote SSH may not work at all.
Measure it before you replace it
Connect with Remote SSH, open your usual folder, wait a minute, then check from a plain SSH session:
# Disk used by the server and its remote extensions
du -sh ~/.vscode-server ~/.vscode-server/extensions 2>/dev/null
# Resident memory (RSS, in KiB) of every VS Code Server process, largest first
ps -u "$USER" -o pid,rss,args --sort=-rss | grep '[v]scode-server' | head -n 15
# How much headroom the box has left
free -h
The [v] in the grep pattern keeps the grep process itself out of the results. If one process stands out, its arguments usually name the extension. That points you to the fix: uninstall that one extension, or replace the whole workflow.
Try trimming Remote SSH first
If you rely on VS Code keybindings and extensions, a few changes often make it bearable on a 2 GB host:
- Open a project folder, never
~or/. The watcher and search scale with the tree you open. - Uninstall extensions from the remote side. In the Extensions view, the "SSH: host" section lists what runs on the server. Keep only what you need for that host.
- Exclude heavy directories in the remote or workspace settings:
{
"files.watcherExclude": {
"**/node_modules/**": true,
"**/vendor/**": true,
"**/.git/objects/**": true,
"**/storage/logs/**": true
},
"search.exclude": {
"**/node_modules": true,
"**/vendor": true,
"**/storage/logs": true
}
}
- Clean up when you're done. The troubleshooting guide documents "Remote-SSH: Kill VS Code Server on Host" and "Remote-SSH: Uninstall VS Code Server from Host...". If you can't reach the command palette, kill the processes and run
rm -rf ~/.vscode-serveryourself.
If the box still swaps after this, the problem is the model itself: a full editor backend running next to production. Time to switch.
The alternatives, compared
| Option | What runs on the server | Language features | Best for | Weak at |
|---|---|---|---|---|
| VS Code Remote SSH | VS Code Server plus most extensions | Full, on the host | Real development on a 2 GB+ host | 1 GB VPSes, old glibc, offline hosts |
| Zed remote development | Headless zed-remote-server binary, language servers, terminals | Full, on the host | Fast editor UI, real projects | Still a server binary; huge trees |
| SFTP-backed editor (DockLab, others) | Only sshd and its SFTP subsystem | Local syntax highlighting; no remote LSP | Config, scripts, small apps, ops work | Project-wide refactors, go-to-definition |
| vim or nano over SSH | The editor process while it's open | Whatever you set up on the host | One-line fixes, root-owned files with sudo | Many files at once, unfamiliar users |
vim scp:// from your machine | Nothing extra; one scp per read and write | Your local vim setup | Quick edits with your own vimrc | Root-owned files, many files |
sshfs mount | Only sshd and SFTP | Your local editor, but slow on big trees | Using local GUI tools on remote files | Dropped connections, partial writes |
Zed remote development
Zed's remote development docs describe a split similar to VS Code's: the UI, Tree-sitter parsing and unsaved changes stay local, while "source code, language servers, tasks, and terminals run on a remote server." Zed installs a headless server binary under ~/.zed_server, downloads it from zed.dev by default, and can upload it over SSH instead if you set upload_binary_over_ssh. It runs ssh from your PATH, so it picks up your ~/.ssh/config:
zed ssh://deploy@web1/var/www/app
Be honest with yourself about what you gain. Zed's server is a native binary, not the VS Code Server, but language servers still run on the host, and those are often the biggest memory users. The docs also warn that very large directories (more than 100,000 files) aren't handled well. It's a good fit if you want language features with a faster local UI. It won't help much if the box can't spare memory for a language server at all.
SFTP-backed editors (including DockLab)
For most small-VPS work (an Nginx vhost, a .env, a systemd unit, a Compose file, a small PHP or Node app), you don't need a language server on the host. You need to open a file, see it highlighted, save it and run a command next to it. An editor that reads and writes over SFTP does that without adding a process to the server. Your server already runs the SFTP subsystem as part of OpenSSH.
That's the workflow we built DockLab around: an SSH terminal, an SFTP file browser and a Monaco-based editor in the same window, with tabs, splits and saved workspaces. A typical loop: edit /etc/nginx/sites-available/app.conf, then run sudo nginx -t && sudo systemctl reload nginx in the split pane, without switching apps. If that matches your day, download DockLab and try it on the host that struggles with Remote SSH. A DockLab account is required to use it.
Where it's the wrong tool: if you need go-to-definition, project-wide rename or remote debugging across a large codebase, an SFTP editor won't replace Remote SSH or Zed. SFTP also writes as your SSH user, so root-owned files need a different approach. Our guide to editing files on a remote server covers the safe patterns, and SFTP permission denied covers ownership fixes. If you're weighing desktop clients, our comparison page is upfront about where Termius, Warp and MobaXterm are stronger.
Terminal editors over SSH
Still the lightest option, and the only one that handles root-owned files cleanly:
ssh web1
sudoedit /etc/nginx/sites-available/app.conf
sudoedit copies the file to a temp location, opens your $EDITOR as your own user, and writes it back as root when you quit. You don't get a root editor session, and your editor config still applies.
If you'd rather keep your local vim config, netrw can edit over scp. Note the double slash for an absolute path:
vim scp://web1//var/www/app/.env
This uses your SSH config alias, so it works with jump hosts too. It writes as your SSH user, so it fails on files only root can write.
sshfs
sshfs mounts a remote directory over SFTP so any local tool can open it. On Ubuntu:
sudo apt install sshfs
mkdir -p ~/mnt/web1
sshfs web1:/var/www/app ~/mnt/web1 -o reconnect,ServerAliveInterval=15,idmap=user
# when done
fusermount3 -u ~/mnt/web1
The sshfs man page explains what to expect: with reconnect, files that were open before the reconnect return errors and must be reopened. It also warns that a lazy unmount won't help when a dropped connection has left reads or writes blocked. Pointing a local IDE at an sshfs mount also makes it index the tree over the network, which can be slower than Remote SSH. Use it for documents and assets, not for live config on a production box.
The SSH config that makes every alternative faster
Every option above, Zed and vim scp:// included, goes through OpenSSH, so one good ~/.ssh/config speeds up all of them. Connection multiplexing matters most: tools that open many short SSH or scp connections reuse one authenticated session instead of handshaking each time.
Create a private socket directory
mkdir -p ~/.ssh/cm && chmod 700 ~/.ssh/cmThe ssh_config manual recommends keeping control sockets in a directory other users can't write to.
Add host entries with multiplexing and keepalives
Host web1 HostName 203.0.113.10 User deploy IdentityFile ~/.ssh/id_ed25519_web1 IdentitiesOnly yes Host * ControlMaster auto ControlPath ~/.ssh/cm/%C ControlPersist 10m ServerAliveInterval 30 ServerAliveCountMax 3ControlMaster autoreuses a master connection if one exists and creates one if not.ControlPersist 10mkeeps it open for ten minutes after the last client disconnects.%Cis a hash of the connection details, which keeps the path short.IdentitiesOnly yesstops the agent from offering every key it holds, which avoids "too many authentication failures" on hosts with strict limits.Check that reuse works
ssh web1 true # first connection creates the master ssh -O check web1 # should print "Master running" ssh -O exit web1 # close it when you want a fresh connection
For a fuller config covering ten or more servers, see our SSH config file examples. If your servers sit behind a bastion, add ProxyJump as shown in SSH jump host: ProxyJump vs ProxyCommand.
Which one we use, and when
We don't run one tool everywhere. On a 1 GB VPS hosting a site and a database, we edit config and small apps through SFTP next to a terminal, and use sudoedit for anything under /etc. For real feature work on a large codebase, we develop locally and deploy, or connect Remote SSH or Zed to a separate box with 2 GB or more that isn't serving production. Moving files between those environments is a separate choice, covered in SFTP vs SCP vs rsync.
Our rule of thumb: if the editor's server would be the biggest process on the box, it's the wrong editor for that box.
Frequently Asked Questions
How much RAM does VS Code Remote SSH need?
Microsoft's documentation says 1 GB of RAM is required on the remote host, and recommends at least 2 GB and a 2-core CPU. That covers the VS Code Server alone. Your remote extensions, language servers and the apps already on the box all come on top.
Does VS Code Remote SSH leave files on my server?
Yes. It installs the VS Code Server and remote extensions under ~/.vscode-server, and new versions can pile up after updates. Run "Remote-SSH: Uninstall VS Code Server from Host..." or kill the processes and delete the folder to remove it.
Is Zed lighter than VS Code Remote SSH?
Zed's UI runs locally and its server is a native binary, but language servers and terminals still run on the remote host. If your memory goes mostly to language servers, the difference may be small. Measure on your own project before you commit to either.
Can I use VS Code Remote SSH on CentOS 7 or Ubuntu 18.04?
Current builds list both as unsupported, because they lack glibc 2.28 or libstdc++ 3.4.25. Use an SFTP-backed editor, vim scp:// or a terminal editor on those hosts, or plan the OS upgrade you probably need anyway.
What is the lightest way to edit files over SSH?
A terminal editor over SSH, such as vim, nano or sudoedit, adds nothing beyond the editor process while it's open. An SFTP-based editor is nearly as light on the server and gives you a GUI, since the server only runs the SFTP subsystem that OpenSSH already provides.
Browse with SFTP, edit in Monaco, save straight to the server.
DockLab puts the file tree, the editor and the terminal side by side, so a config change is one window, not three apps.