windows 如何解决 TortoiseGitPlink 致命错误?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/28106717/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to solve TortoiseGitPlink Fatal Error?
提问by SDF
I was using Git with beanstalk in windows 7. Now I got new system with Windows 8.1. Now I configured Git and Tortoisegit with new system.Its working fine in local commit but when I pushed to live I got error:
我在 Windows 7 中使用 Git 和 beanstalk。现在我有了 Windows 8.1 的新系统。现在我用新系统配置了 Git 和 Tortoisegit。它在本地提交中工作正常,但是当我推送到现场时出现错误:
Disconnected: No supported authentication methods available (Sever sent: public key)
I added SSH key and all? Is there any problem in Windows 8.1? Thanks
我添加了 SSH 密钥等等?Windows 8.1 有问题吗?谢谢
回答by SDF
I opened TortoiseGit->Settings -> Network and in SSH Client I changed "ssh.exe" instead of "TortoiseGitPlink.exe". Now it works fine.
我打开 TortoiseGit->Settings -> Network 并在 SSH Client 中更改了“ssh.exe”而不是“TortoiseGitPlink.exe”。现在它工作正常。
回答by user7784804
Or run Putty authentication agent (Pageant.exe) from TortoiseGit folder (usually C:\Program Files\TortoiseGit\bin) and add PuttyKey manually to the app.
或者从 TortoiseGit 文件夹(通常是 C:\Program Files\TortoiseGit\bin)运行 Putty 身份验证代理 (Pageant.exe) 并手动将 PuttyKey 添加到应用程序。
回答by MrTux
This error indicates that the server requires public key authentication and no key was provided by the client.
此错误表示服务器需要公钥身份验证,而客户端未提供任何密钥。
TortoiseGit by default uses TortoiseGitPLink (which is based on Putty Link).
TortoiseGit 默认使用 TortoiseGitPLink(基于 Putty Link)。
Therefore it requires key to be stored in the putty format and also
因此,它需要以腻子格式存储密钥,并且
- configured in the putty session OR
- loaded in putty agent (this is done by TortoiseGit if loading ssh keys is enabled).
- 在腻子会话中配置或
- 在 putty 代理中加载(如果启用了加载 ssh 密钥,则由 TortoiseGit 完成)。
You can, however, also use OpenSSH, by setting the SSH client to ssh.exe
on TortoiseGit -> Settings -> Network.
但是,您也可以使用 OpenSSH,方法是将 SSH 客户端设置为ssh.exe
TortoiseGit -> 设置 -> 网络。
回答by Avinash Wable
On windows 8.1 and TortoiseGit 2.1.0.0, changing SSH Client to just "ssh.exe" solved this issue.
在 Windows 8.1 和 TortoiseGit 2.1.0.0 上,将 SSH 客户端更改为“ssh.exe”即可解决此问题。
回答by rafi wiener
check pageant.exe under C:\Program Files\TortoiseGit\bin is running. and add key
检查 C:\Program Files\TortoiseGit\bin 下的 pageant.exe 是否正在运行。并添加密钥
回答by magnoz
I received this error because my key agent (KeePass KeyAgent plugin) didn't have the correct key loaded anymore. Added the correct key and everything was fine.
我收到此错误是因为我的密钥代理(KeePass KeyAgent 插件)不再加载正确的密钥。添加了正确的密钥,一切都很好。
回答by Jamie Gardner
TortoiseGit may, from time to time, unload your putty key.
TortoiseGit 可能会不时卸载您的腻子键。
Simply open TortoiseGit -> Settings -> Git -> Remote
只需打开 TortoiseGit -> 设置 -> Git -> 远程
Then reload your putty key for your chosen remote connection (e.g. origin)
然后为您选择的远程连接重新加载您的腻子键(例如origin)