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.
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.