Operations 8 min read

How to Set Up Seamless Remote Development with VS Code and SSH

This guide walks you through configuring VS Code’s Remote Development extensions, setting up SSH environment variables, installing the Remote‑SSH plugin, and establishing a password‑less connection to a Linux cloud host, enabling smooth coding and debugging as if the files were local.

Liangxu Linux
Liangxu Linux
Liangxu Linux
How to Set Up Seamless Remote Development with VS Code and SSH

Traditional Remote Development

Typical backend developers write code on a Windows or macOS IDE, then sync files to a Linux server via ftp or sync, and use xshell to compile and debug, which can be cumbersome.

Why VS Code Remote Is Better

VS Code is an open‑source, cross‑platform editor that supports extensions, Git integration, IntelliSense, and remote development capabilities introduced in version 1.35.0.

Visual Studio Code (VS Code) is a Microsoft‑developed, open‑source editor for Windows, Linux, and macOS, offering code completion, refactoring, and a rich extension ecosystem.

Remote Development Extension Pack

The Remote Development pack includes three extensions:

Remote - SSH – connect to a virtual or physical Linux host via SSH.

Remote - Containers – attach to Docker development containers.

Remote - WSL – connect to the Windows Subsystem for Linux.

For a cloud host, install Remote - SSH.

Step‑by‑Step Configuration

1. Configure SSH Environment

Git provides an SSH client; ensure Git is installed and its bin directory is added to PATH so VS Code can locate it.

2. Install Remote Development Plugins

Open VS Code’s Extensions view, search for plugins starting with “Remote”, and install Remote - SSH.

3. Configure Remote Connection

Open the Remote Explorer sidebar and click the settings button to open the remote machine configuration UI.

Edit the SSH config file (shown in the screenshot) to define host, user, and key paths.

Click “Connect”; the first connection initializes the VS Code Server on the remote host.

After successful login, the file explorer shows the remote directory structure; opening a folder operates on the remote machine.

Install any needed extensions on the remote VS Code instance; they run on the server and provide features like code review and auto‑completion.

Edit files and use the integrated terminal to compile or run commands directly on the remote host.

4. Set Up Password‑less SSH Login

Run ssh-keygen -t rsa in a Windows CMD window to generate a key pair.

Copy the contents of id_rsa.pub to ~/.ssh/authorized_keys on the cloud host.

Reconnect; the password prompt disappears.

Conclusion

The remote development setup lets you keep all IDE extensions and code on the cloud host, reducing local software installations and enabling a smooth experience even on low‑spec machines. With SSH‑based remote editing, you can code in C++, Python, or Go from anywhere, dramatically boosting productivity.

productivityIDEremote developmentVS CodeSSHCloud Host
Liangxu Linux
Written by

Liangxu Linux

Liangxu, a self‑taught IT professional now working as a Linux development engineer at a Fortune 500 multinational, shares extensive Linux knowledge—fundamentals, applications, tools, plus Git, databases, Raspberry Pi, etc. (Reply “Linux” to receive essential resources.)

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.