SSH into Remote VM with VS Code | Tunneling into any cloud | GCP Demo

preview_player
Показать описание
Are you wondering how to open a remote folder in VS Code via SSH?
That's exactly what we show you in this video. With this approach you can use Visual Studio Code on your local machine but store and run your source code on a remote machine on literally any cloud. In this live demo we are creating a virtual machine on the Google Cloud Platform (GCP) and SSH into it.

Chapters in this video:
0:00 - Intro and Explanation
01:09 - Create Virtual Machine (GCP)
02:53 - Remote SSH config in VS Code
05:19 - Private/Public Key creation (ssh-keygen)
07:19 - Add Public Key to GCP VM
08:06 - Connect to Remote VM
09:45 - Verify SSH Server is running
10:08 - Install SSH Server (optional)
18:18 - Outro

Contact us:
Note the underscore in our Twitter Handle: @BlueAntoinette_

Blue Antoinette:

Hashtags:
#ssh #vscode #gcp
Рекомендации по теме
Комментарии
Автор

Note: If you use VMs with ephemeral IP addresses your host keys in the file ~/.ssh/known_hosts may become invalid on VM restarts. In this case you can delete the line with your VMs IP address from the ~/.ssh/known_hosts file and then connect to your VM.

BlueAntoinette
Автор

Guys, I tried N tutorials, even one where the SDK itself created the .config and only this one worked. Thank you man, you are incredible.

silviaregina
Автор

Thanks man. I was about the become crazy trying to figure out the Google Cloud documentation. Your tuto is simple and crystal clear.

dravitch
Автор

Thank you, it worked! I did copy the gcloud command but it didn't work, maybe some error with the ssh key. But I manually created the key and added it into the VM instance and It worked instantly. Thanks a lot!

bcak
Автор

You've solved my issue my good man, thanks so much. everything clear

jayjayting
Автор

Thank you! This is a great tutorial!! Super clear and well-organized!

Jojo-lfcw
Автор

Best video ever uploaded to youtube, thanks man.

valeras
Автор

I spent about a week trying to do this. My issue was specifically generating the SSH key and then adding the IdentityFile line. Thank you so much.

ericritter
Автор

Wow, this is a real tutorial, very specified, an actually works, thanks

JardanySvidrigailov
Автор

Thank you. This helped me setup my VS Code to my GCP instance :)

markphilipsy
Автор

Worked for me! Thanks for this guide 👍

tsykin
Автор

Fabulous, i was missing the IdentityFile line.
Thanks man kudos

xlpzkjh
Автор

Thank you so much this worked for me after spending the whole night stuck on one place

alexiojunior
Автор

Thank you very very very much, you rescued me

mahmoudsamyessawy
Автор

Awesome tutorial, but I still have an issue where I'm unable to write the files because I don't seem to have permissions... not sure how to fix ;(

bombdotcomist
Автор

Hello, I tried all the steps to connect to a VM in GCP via VS code on my mac book, but getting this error "Could not establish connection to "VM NAM": The operation timed out. Any help would be much appreciated.

hivaghanbari
Автор

Thank you it works fine.But it is little bit tricky.If you want to connect to the existing VM make sure you put exact same name as it is on your existing VM at the end of the private key.Otherwise will create sibling on your existing vm and you will not be able to access the ubuntu existing files.

peshotod
Автор

can i use more than 1 host like remote-ssh-demo1 and remote-ssh-demo2 with different ssh key ?

pbefcux
Автор

Tried all the steps mentioned in the video, but still getting the error "could not establish conection to " and sometimes permission denied "publickey".

shauryatiwari
Автор

After all manipulations, i get error "could not establish to "my ssh""
Detail: I use ssh on host of site

qcnlrdz