我正在尝试从Windows机器访问Github上的存储库,后者是需要NTLM身份验证的代理。 SSH和git://协议都没有直接的可用性,所以我试图通过代理使其工作。
原文链接:https://www.f2er.com/windows/372759.html在NTLM proxy without password?的帮助下,我已经能够使带有msysgit的curl二进制文件与代理一起播放很好:
curl -U : --proxy-ntlm --proxy xxx.xxx.xx.xx:8080 https://github.com
这是成功的,并返回Github主页。
然而,我发现2010年2月07日的一篇文章指出(强调我的):
Unfortunately it appears that curl will always use Basic authentication with the proxy. If your proxy needs something else,perhaps NTLM for a Windows network,then you have a problem. Curl is used to handle all the http transport details and this does support the NTLM authentication method but I know of no method to pass the necessary options to curl. Git makes use of curl via its library binding so it is not enought just to replace the curl executable with a wrapper script.
我知道Git配置中的core.gitproxy选项,但这似乎只适用于git://协议。类似地,http.proxy选项设置代理的地址,但不提供适当的选项来卷曲。