Visual Studio Code Remote Development through SSH

preview_player
Показать описание
How to setup the Remote Development extension from Microsoft in VS Code, for remote development on a Linux server (at this time, you need to use a x64 machine). As a demo of the workflow, I show how to debug a dummy C program.

First part of the video shows the setup in detail on a Windows machine, after which I demo how to debug a C program, last part of the video briefly shows the setup on a Linux machine. I recommend to watch the entire video even if you are on a Linux machine because the Windows part contains more explanations.
Рекомендации по теме
Комментарии
Автор

I was having issues connecting VSCode to server through SSH and tried so many things yesterday. Nothing worked. Now from this video, I found that I need to add Port and full address of the private key to be able to connect successfully. Thanks a lot!

abhijitd
Автор

Thanks for providing the step-by-step instructional video. Now I have my Visual Studio Code (Machine Learning Models) running on AWS for overnight training and don't have to worry about losing connection and the system prompting me for a password while I get my much needed sleep.

charlesalleyne
Автор

OMG, It works finally, I saw so many tutorials and yours is the best. Thank you for sharing.

momq
Автор

I've checked out this video each time when I'd like to connect to a new server.

GfastGao
Автор

Very nice tutorial. One observation. On my Windows 10 machine on VS Code the config file required me to use \ in the IdentityFile to indicate the path to the private key. When I used /, it did not work. When I changed all the / to \, it worked.

rahultino
Автор

After trying so hard finally found the solution

ashishkedarisetti
Автор

Method works great in 2021! Easy to follow

codeanster
Автор

Thanks a lot it worked, I've been trying for so long, you saved my life.

takudzwamupanesure
Автор

Please enable "Return YouTube Dislike" add-on for your YouTube account. This is what serious youtubers do. And I'm sure You are serious youtuber, because your video helped me a lot.

michalroesler
Автор

great tutorial, everything worked on 1st attempt! thanks!

petersteiner
Автор

Thanks for making this video. Exactly what I needed!

andycordell
Автор

thank you!
it worked :)
I just had to switch back to version 0.49.0 of Remote - SSH because there is an issue with newer versions and it could not connect.

khronaki
Автор

Very neat! Thank you for the step by step setup 👍

mariustamdemtokam
Автор

how did you configure the Linux side server so that the windows side
can connect at the specified IP address and pot 2222?

enzotechcomputersolutions
Автор

Thanks, It helped me to connect always without password, it was tirring hahaha

Mohamed-Maghrebi
Автор

If after doing all this, it takes time to connect to the remote server or fails, install an older version of Remote SSH extension v0.49.0. There seems to be some issue in the newer version.

iamabhishekanupam
Автор

I hope I help somebody with this someday, But mine wasn't working at first and I spent 2 hours to fix it.

I could generate the key, copy it and login to my server via windows cmd build in ssh. But when I tried connecting with VSC insiders it wouldn't work. it said 'can''t establish connection' or something like that.

The problem was when you select <remote-ssh connect to host a new window opens, but what didn't happen in this video, which did happen to my was when the new windows was open there was already a popup dialog box (it had the same style as VSC and was already there, so I didn't think I had to select anything from it) but YES I had to select an option from it

The dialog box was at the top center with 3 options: Windows, Linux and Mac OS. If this pops up select the OS your server is running (in my case linux, for ubuntu server 20.04)

nielsvansteen
Автор

How would you connect with hmac-sha2-256 algorithm? I have tried MACs hmac-sha2-256 in config file, unfortunately didn't work.

farhodkalonov
Автор

Every is okay except that the not all extension that are installed in VS code are installed on Remote machine. Themes and snippets are installed only on local machine

coder
Автор

For me it still always ask for Password and select OS type manually😓. any idea?

oussamakarem
visit shbcf.ru