--recurse ERROR: Insufficient Permission: Request had insufficient authentication scopes

Wes picture Wes · Feb 12, 2019 · Viewed 22.5k times · Source

I'm trying to copy a directory from my vm to my local machine's Desktop with the following command:

gcloud compute scp --recurse instance-1:~/directory ~/Desktop/

I tried reauthenticating with "gcloud auth login" however it still says

ERROR: (gcloud.compute.scp) Could not fetch resource:
 - Insufficient Permission: Request had insufficient authentication scopes.

Answer

Eduardo Ruela picture Eduardo Ruela · Feb 12, 2019

Try to run a "gcloud auth login" from the machine that you are trying to run the gcloud command.

For more information have a look at this old post, they are reporting the same issue.