Detach Disk from GCE VM to mount and edit SSH

0

i am trying to detach disk on temp instance so i can mount and edit ssh_config but when i am using gcloud compute instances detach-disk INSTANCE --disk mydisk it shows

ERROR: (gcloud.compute.instances.detach-disk) There was a problem fetching the resource:
 - Insufficient Permission

any suggestion? i'm new to google Cloud

Rahul Singh

Posted 2015-07-09T11:43:14.163

Reputation: 1

Answers

0

First, you should run gcloud auth login to authenticate with Google Cloud Platform.

Also, you probably want to add --zone ZONE and --project PROJECT flags to your command line.

To avoid setting the project and zone every time with gcloud, you can set defaults for either or both of these:

Misha Brukman

Posted 2015-07-09T11:43:14.163

Reputation: 371