Permission denied (publickey,gssapi-keyex,gssapi-with-mic)

后端 未结 11 1147
有刺的猬
有刺的猬 2020-12-04 16:42

After creating the instance, I can login using gcutil or ssh. I tried copy/paste from the ssh link listed at the bottom of the instance and get the same error message.

11条回答
  •  孤街浪徒
    2020-12-04 17:06

    1. Add ssh public key to Google cloud
    • cat ~/.ssh/id_rsa.pub
    • go and click your VM instances
    • edit VM instances
    • add ssh public key(from id_rsa.pub) in SSH keys area
    1. ssh login from Git bash on your computer

      ssh -i ~/.ssh/id_rsa tiennt@x.y.z.120

提交回复
热议问题