Working over SSH with Visual Studio Code (2024)

What is SSH?

SSH, or the secure shell protocol, lets you access a remote computer or virtual machine securely over a network connection.

You can connect over SSH into another machine from Visual Studio Code and interact with files and folders anywhere on that remote filesystem. If you have an app located on a different computer, you could use SSH to connect to it and access your app, view its files, and even modify, run, and debug it.

You can also take advantage of any tools or dependencies installed on that remote machine. You could connect to remote machines very different than your local machine. For instance, they could have a different operating system, different tools installed, or much stronger computing power.

In the classroom, you might SSH into lab machines to access computers with certain dependencies required for an assignment (like a specific version of Python or a C++ compiler), a different operating system than your own, or source code or automatic tests pre-loaded from your professor.

Get started with SSH in VS Code

To get started with using SSH in VS Code, you'll need to download the Remote - SSH extension from the Extension Marketplace.

Working over SSH with Visual Studio Code (1)

Check out the following video to see an example of using Remote - SSH in action:

As demonstrated above, we can SSH into a more powerful virtual machine to greatly speed up the execution time of our programs.

Next steps

We also highly recommend checking out the step-by-step SSH tutorial.

Working over SSH with Visual Studio Code (2024)
Top Articles
Latest Posts
Article information

Author: Jerrold Considine

Last Updated:

Views: 5961

Rating: 4.8 / 5 (58 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Jerrold Considine

Birthday: 1993-11-03

Address: Suite 447 3463 Marybelle Circles, New Marlin, AL 20765

Phone: +5816749283868

Job: Sales Executive

Hobby: Air sports, Sand art, Electronics, LARPing, Baseball, Book restoration, Puzzles

Introduction: My name is Jerrold Considine, I am a combative, cheerful, encouraging, happy, enthusiastic, funny, kind person who loves writing and wants to share my knowledge and understanding with you.