How to connect the Google Compute Engine via Visual Studio Code

1. Generate SSH config file using gcloud command line 1 gcloud compute config-ssh https://cloud.google.com/sdk/gcloud/reference/compute/config-ssh You cant get ssh config for your Google Compute Engine project! Notice: you need choose target GCP project before run below command. 1 gcloud config set project <your-project-id> 2. Install Remote SSH extention in Visual Studio Code. https://code.visualstudio.com/blogs/2019/07/25/remote-ssh 3. Press โ‡งโŒ˜P & Select target connection in Visual Studio Code! Finaly you can connect in Visual Studio Code....

September 24, 2019 ยท Shunya Ueta