Using the SSH Extension in VS Code to Work on a Remote Machine

By Łukasz Kallas
Picture of the author
Published on
programming image

Working on remote machines directly from your local development environment can streamline your workflow and enhance productivity. Visual Studio Code (VS Code) offers an excellent extension, Remote - SSH, which allows you to connect to remote servers and work as if you were on your local machine. Here's how to set it up and use it.

  1. Install the Remote - SSH Extension
  2. Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P).
  • Type Remote-SSH: Add New SSH host and select it.
  • Type ssh user@hostname

VS Code will now connect to the remote machine, and you'll be able to open folders and files as if they were local.

  1. Open a Remote Folder

Stay Tuned

Want to learn?
The best articles, links and news related to software development delivered once a week to your inbox.