权限被拒绝(publickey)在Windows 7上使用git时出错 [英] permission denied (publickey) Error using git on windows 7
问题描述
当我想用这个命令推送到github时
When I want to push to github with this command
git push origin master
我得到了这个
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
那么,有什么不对?
推荐答案
EUREKA!
显然,您可以使用 plink
作为主要的ssh客户端,只需加载您的密钥在 pageant
(if你就像我一样,你已经这样做了):
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):
你可以通过设置 GIT_SSH
env变量来做到这一点 plink.exe
路径如下:
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
set GIT_SSH=C:\Program Files\PuTTY\plink.exe
或者,您可以使用TortoiseGit的plink:
or, you can use plink from TortoiseGit:
设置GIT_SSH = c:\程序文件\TortoiseGit\bin\TortoisePLink.exe
set GIT_SSH=c:\Program Files\TortoiseGit\bin\TortoisePLink.exe
信用:采取原始解决方案从此博客张贴
Credit: Original solution taken from this blog post
这篇关于权限被拒绝(publickey)在Windows 7上使用git时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!