SSH cannot authenticate to git@github.com

后端 未结 5 1777
陌清茗
陌清茗 2021-01-30 09:28

Recently, I sign up for a free plan on Github.com. I follow their instructions to generate a ssh key to add to my account. However, when I try ssh -v git@github.com

5条回答
  •  太阳男子
    2021-01-30 09:48

    If it doesn't already exist, you generate the ssh key first:

    ssh-keygen -t rsa 
    

    now copy this key, it'll be in this dir ~/.ssh/id_rsa.pub, open with notepad, paste this key in the "add ssh key" section in your github account! That's it!

提交回复
热议问题