Changing or updating the passphrase in gcp lamp vm

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:

  • retrieving gcp passhprase
  • scp exiting with error 1

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

  • Authorizing Cloud SDK tools
  • gcloud compute config-ssh