Skip to content

Maari's Blog

Menu
  • Home
  • About Me
Menu

How to connect Visual Studio Code to a remote target

Posted on October 3, 2020April 4, 2022 by maaritamm

My editor of choice is Visual Studio Code and it comes handy while contributing to OpenStack. I am running DevStack on a local VM and here is how I connect VSCode to it:

Open Visual Studio Code and click on the Remote Explorer icon on the left side:

Add a new SSH Target (Click on the +):

Type in the SSH command (for example I would run ssh -p 2204 maari@127.0.0.1):

OR to add a new target straight to the config file, click on the cogwheel icon:

open the /../.ssh/config file and add your information:

Mine looks like this:

Now, once you’re connected to your VM, click on the Explorer icon on the top left corner and Open Folder:

now you can navigate in your VM 🙂

When running DevStack, for example, I like to open the /opt/stack/ folder so I have all my repos listed together:

Happy coding!

About This Page

Here lives my personal blog about getting started in tech. Just me, writing down some things, so I can follow the steps again if need be. All newbie-friendly stuff! 🙂

©2022 Maari's Blog | Built using WordPress and Responsive Blogily theme by Superb