我按照http://returnbooleantrue.blogspot.com/2009/06/using-github-through-draconian-proxies.html但随后连接内部服务器失败:
Proxy could not open connnection to 192.168.1.***: Forbidden
ssh_exchange_identification: Connection closed by remote host
svn: Commit failed (details follow):
svn: Network connection closed unexpectedly
我可以设置config
文件以使其ProxyCommand
仅用于 ssh.github.com 吗?
答案1
绝对如此。将该指令放在单独的一Host
节中。
Host github-external
HostName ssh.github.com
ProxyCommand dosomethinghere
然后用作github-external
主机名。