google-compute-engine,google-cloud-shell"/>
Answer

Cloud Shell environment is a Docker container that is using g1-small machine type.

You can use gcloud command from Cloud Shell to SSH to your VM. From there you can add and edit files by using classic linux terminal commands.

gcloud compute ssh --project [PROJECT_ID] --zone [ZONE] [INSTANCE_NAME]

With the Cloud Shell editor you can only move files of the Cloud Shell VM, but you can not use this editor for VMs created in Google Cloud Platform.

Also you can change your Cloud Shell environment image, but it cant be any of your GCP VMs. Here is the direct link.

  • 0
Reply Report
      • 2
    • Thanks @Ivan. I know we can SSH in to the VM but I wanted to make sure that I didn't miss anything on using Cloud Shell editor to edit files in my VM. Your answer clarifies it. Thanks.

Warm tip !!!

This article is reproduced from Stack Exchange / Stack Overflow, please click

Trending Tags

Related Questions