permission denied (publickey) Error using git on windows 7

后端 未结 15 1942
暖寄归人
暖寄归人 2021-01-29 22:35

When I want to push to github with this command

git push origin master

I got this

Permission denied (publickey).
fatal: The rem         


        
15条回答
  •  被撕碎了的回忆
    2021-01-29 22:59

    I discovered that my problem was that whatever version of ssh-keygen that I used created the files with the wrong filenames... The files initially created where %USER_HOME%.ssh\ida_rsa and ida_rsa.pub, but git expected them to be id_rsa and id_rsa.pub.

    I solved the problem by running git bash, THEN running ssh-keygen

提交回复
热议问题