我正在测试SSH连接,以检查在git中的RSA密钥。 我正在使用代理服务器。 我正在使用Windows 7,并已安装msysGit-fullinstall-1.7.3.1-preview20101002。 现在,在msys.exe窗口中,我通过命令'git config --global http.proxy http://host:port'设置了代理。 之后,我尝试了' ssh git @ github.com'命令。 这给我返回错误,如“ssh:github.com:没有与名称关联的地址”。
我该怎么办?
connect.exe
,但是出现了错误syntax error near unexpected token 'newline' <!DOCTYPE html> Connection closed by remote host
。之后我改成了"/c/Program Files/Git/mingw64/bin/connect.exe"
,就可以正常工作了。 - Evan HuProxyCommand connect.exe -H proxy.server.name:3128 %h %p
(其中connect.exe
包含在Git的mingw64\bin
目录中,在运行git
命令时会将其添加到路径中)。 - Anthony O.