我在这里不知所措。我让乌龟工作正常,但有些事情发生了变化。现在每当我尝试提交或从远程仓库中 pull 时,我都会得到
git.exe push --progress "origin" master:master
FATAL ERROR: Disconnected: No supported authentication methods available (server sent: publickey)
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
git did not exit cleanly (exit code 128) (1250 ms @ 3/23/2014 10:18:15 AM)
我将 GIT_SSH
环境变量设置为 C:\Program Files (x86)\PuTTY\plink.exe
并且我有 pagaent.exe
使用我加载的私钥运行。 github 有我的公钥。
在控制台中运行相同的命令
git.exe push --progress "origin"master:master
工作得很好!我试过卸载乌龟,升级 git,创建一个新的 ssh key ,似乎没有任何效果。
谁能指出我正确的方向?
最佳答案
我发现了问题。我安装了Gow在某个时候,我正在生成一个选美版本。这个版本的 pagaent 与 Putty 附带的版本有些不同,因此乌龟失败了。当我运行 Putty 附带的 pagaent 版本时,一切终于再次运行。
关于windows - Tortoise git 失败,没有可用的支持的身份验证方法(服务器发送 : publickey),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22594263/