TortoiseGit using incorrect SSH key

前端 未结 4 1972
时光取名叫无心
时光取名叫无心 2021-02-01 05:51

I have a strange problem with tortoise git at the moment, which I can\'t figure out. When trying to commit to my repository on github I get the error

ERRO

4条回答
  •  伪装坚强ぢ
    2021-02-01 06:20

    create the key in git bash:

    ssh-keygen -t rsa
    

    Leave everything blank and don't set a password. Take the contents of the ~/.ssh/id_rsa.pub and paste it into the public key space provided by github.

    Now test this by connecting to github via ssh. If that works, you will be able to use git.

    hope this helps.

提交回复
热议问题