Matt Hardner
06/02/2021, 5:42 PMgcloud beta compute ssh --zone "us-central1-a" --tunnel-through-iap "instance-1" --project "curantisapp-staging-shared" -- -L 8000:localhost:8000 -L 8001:localhost:8001 -N -f
but am getting the following ERROR: (gcloud.beta.compute.ssh) Could not fetch resource: - Request had insufficient authentication scopes.
[DEPRECATED] Marcos Marx
gcloud auth list
?
you will needto use SSH or SCP to an instance for the credentials that you are using. The simplest method is to addroles/compute.instanceAdmin.v1
to your credentials.Compute Instance Admin
Matt Hardner
06/02/2021, 5:46 PM[DEPRECATED] Marcos Marx
Matt Hardner
06/02/2021, 5:50 PMMatt Hardner
06/02/2021, 6:01 PMAlex Koshterek
06/02/2021, 6:22 PMAlex Koshterek
06/02/2021, 6:25 PM--tunnel-through-iap
option requires less permissions. https://cloud.google.com/iap/docs/managing-access#roles[DEPRECATED] Marcos Marx
Matt Hardner
06/02/2021, 8:13 PM[DEPRECATED] Marcos Marx
Matt Hardner
06/03/2021, 1:06 AMMatt Hardner
06/03/2021, 1:07 AMMatt Hardner
06/03/2021, 12:33 PM