How do I retrieve Google SDK passphrase

后端 未结 2 1640
情话喂你
情话喂你 2021-02-06 05:22

Following this post, I\'m trying to transfer code from my local machine to the compute engine but I forgot my passphrase.

Can someone tell me how to retrieve it.
I\

相关标签:
2条回答
  • 2021-02-06 05:40

    this below works as stated by @cherba

    rm ~/.ssh/google_compute_engine* 
    

    after using this command you can then reset the password to the ssh passphrase or you can simply hit enter to leave no password. i am supplying this answer because if you use the command and then attempt to ssh into an instance it takes a few seconds for the keys to propagate. i wanted to add this as a comment but didn't have enough reputation points on stack overflow.

    0 讨论(0)
  • 2021-02-06 06:01

    Remove your old keys and try again, that is

    rm ~/.ssh/google_compute_engine*
    

    and then

    gcloud compute ssh my_vm_name --zone zone_vm_is_in
    
    0 讨论(0)
提交回复
热议问题