permission denied (publickey) Error using git on windows 7

后端 未结 15 2098
暖寄归人
暖寄归人 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 23:03

    EUREKA!

    Apparently, you can use plink as the main ssh client and just load your keys in pageant (if you're like me, you already do):

    You can do that by setting the GIT_SSH env variable to plink.exe path like so:

    set GIT_SSH=C:\Program Files\PuTTY\plink.exe

    or, you can use plink from TortoiseGit:

    set GIT_SSH=c:\Program Files\TortoiseGit\bin\TortoisePLink.exe

    Credit: Original solution taken from this blog post

提交回复
热议问题