0

I am trying to download files from a particular folder from one of my vm's on gcp using the following command

gcloud compute scp --recurse VM_NAME:REMOTE_DIR LOCAL_DIR

After running the command the gcp terminal asks me for a passphrase.

I enter the passphrase and get a message saying

ERROR: (gcloud.compute.scp) [/usr/bin/scp] exited with return code [1].

My qs: How do I change or update the passphrase?

Note: The passphrase was set by running the following command: gcloud auth login

What I have already done?

  • Tried restarting and reloading apache2.
  • Searched online for the issue using popular search engines.
  • The solution mentioned here How do I change my private key passphrase? will not work because it asks for the old passphrase to change it
user4540741
  • 11
  • 1
  • 6

1 Answers1

1

You have an issue with a proper ssh-key authorization. You may actually try the gcloud compute config-ssh first but I'd advise to go through the answers and documentation first to understand what you're doing.

I've found two answers for a similar questions that may help you:

Also have a look at the documentation that describes authorising ssh to your VM's:

Wojtek_B
  • 1,113