How do I retrieve Google SDK passphrase

假装没事ソ 提交于 2019-12-20 23:33:13

问题


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've searched around for solutions but found nothing.


回答1:


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



回答2:


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.



来源:https://stackoverflow.com/questions/34719690/how-do-i-retrieve-google-sdk-passphrase

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!