git 为什么 TortoiseGit 中的“加载腻子键”字段被禁用?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12894434/
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
Why is the "Load putty key" field in TortoiseGit disabled?
提问by Mihir Bhatt
I would like to connect to my repository using an SSH key instead of a username & password.
我想使用 SSH 密钥而不是用户名和密码连接到我的存储库。
However when I try to do this in TortoiseGit I can not enter the key because the "Load Putty Key" is disabled. Can anyone point out why this is happening and how I can enable the field?
但是,当我尝试在 TortoiseGit 中执行此操作时,我无法输入密钥,因为“加载 Putty 密钥”已禁用。谁能指出为什么会发生这种情况以及我如何启用该领域?
回答by mirancon
In TortoiseGit settings go to Network. In field SSH Client, specify the path to TortoiseGitPLink
在 TortoiseGit 设置中,转到Network。在字段SSH Client 中,指定 TortoiseGitPLink 的路径
e.g.:
例如:
C:\Program Files\TortoiseGit\bin\TortoiseGitPLink.exe
C:\Program Files\TortoiseGit\bin\TortoiseGitPLink.exe
回答by nVxx
Setting correct path to TortoiseGitPlink.exe
for SSH client:
in Settings->Network
should fix the problem. Something like:
为TortoiseGitPlink.exe
for SSH client:
in设置正确的路径Settings->Network
应该可以解决问题。就像是:
C:\Program Files\TortoiseGit\bin\TortoiseGitPlink.exe
BUT, in some cases the new path is not saved for some reason!
但是,在某些情况下,新路径由于某种原因没有保存!
As mentioned in the comments, sometimes (in my case TortoiseGit 2.5.0.0
) the setting was not being applied. Clicking on OK
or Apply
was not producing any error, but when closing and opening the Settings
again, the old path was there.
正如评论中所述,有时(在我的情况下TortoiseGit 2.5.0.0
)未应用该设置。单击OK
或Apply
没有产生任何错误,但是当Settings
再次关闭和打开时,旧路径在那里。
In order to workaround this, check also Enable Proxy Server
in the same Network
menu (do not provide any proxy settings). After this the window will close on OK
press, and when reopened, Enable Proxy Server
will be unchecked, but the new path will be saved.
为了解决这个问题,还请检查Enable Proxy Server
同一Network
菜单(不提供任何代理设置)。此后,窗口将在OK
按下时关闭,重新打开时,Enable Proxy Server
将取消选中,但将保存新路径。
回答by Lazy Badger
SSH and key based authentification is a job of SSH-client (plink) and key-agent (pageant)
SSH 和基于密钥的身份验证是 SSH 客户端(plink)和密钥代理(选美)的工作