如何告诉Git(Windows上的msysgit)使用ssh而不是选美 [英] how to tell Git (msysgit on Windows) to use ssh and not pageant
问题描述
我在我的Win7机器上安装了Git,并告诉它使用Putty来执行ssh。因此,现在它预计,Pageant将始终运行,以便能够连接到GitHub。
今天,我安装了一个更新版本的Git并告诉它使用OpenSSH ,而不是腻子。但它一直试图通过寻找Pageant进行验证。
我的身份证件配置正确,如果我在BASH提示符下输入 ssh git@github.com
成功。但是,远程回购的唯一途径是如果Pageant正在运行。
在哪里配置好了,我如何指示msysgit忘记putty / pageant?
MsysGit应该采用其ssh程序来自 GIT_SSH
环境变量,所以即使您安装了更新的版本,也请检查您的当前会话是否包含正确的 GIT_SSH
值。
I installed Git a while back on my Win7 machine and told it to use Putty for doing ssh. So now it expects Pageant to be running all the time in order to be able to connect to GitHub.
Today I installed a newer version of Git and told it to use OpenSSH, not Putty. But it keeps trying to authenticate by looking for Pageant.
My identity files are configured correctly, and if I do ssh git@github.com
from my BASH prompt it succeeds. Still, the only way to the remote repo is if Pageant is running.
Where is this configured and how can I instruct msysgit to forget about putty/pageant?
MsysGit should take its ssh program from the GIT_SSH
environment variable, so even if you did install a newer version, check that your current session include the right GIT_SSH
value.
这篇关于如何告诉Git(Windows上的msysgit)使用ssh而不是选美的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!