为什么 Ubuntu 机器无法访问 Github?
Why is Ubuntu machine not being able to access Github?
我可以 curl
和 wget
google.com 以及其他使用 https 的网站(虽然不是全部)。
Github就是其中之一。以下命令在我的 Ubuntu 14.04 机器上不起作用:
这将无限期挂起
/usr/local/bin/git ls-remote git://github.com/sstephenson/rbenv.git -h refs/heads/v0.4.0
这导致:curl: (35) Unknown SSL protocol error in connection to github.com:443
curl https://github.com
这导致:正在解析 github.com (github.com)... 192.30.252.130
正在连接到 github.com (github.com)|192.30.252.130|:443... 已连接。
无法建立 SSL 连接。
wget https://github.com
openssl 显示没有证书(这是最好的提示吗?)
openssl s_client -connect github.com:443
CONNECTED(00000003)
write:errno=104
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 0 bytes and written 305 bytes
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
---
为什么 Github 这里有问题?我的系统是否阻止了 SSL 流量?防火墙规则也可能阻止流量。如果是这种情况,请指出,因为我没有知识来确定是否是这个原因。
我不能 git clone
public 并且不属于我的帐户(我有 SSH 密钥)的回购。可以从我自己的 Github 帐户克隆回购协议。
Here is an strace of the command(注意它挂在最后一行)
openssl s_client -connect github.com:443
CONNECTED(00000003)
write:errno=104
我建议您在某些防火墙中间盒后面,它限制了您可以访问的站点。在 https 的情况下,限制取决于目标(它可能正在调查 SSL 握手),因此将允许 TCP 连接,但一旦检测到 "wrong" 目标,就会关闭它,导致对等方重置连接(errno =104).使用 git 相反,它只是阻止端口 9418,因此连接尝试挂起。
我可以 curl
和 wget
google.com 以及其他使用 https 的网站(虽然不是全部)。
Github就是其中之一。以下命令在我的 Ubuntu 14.04 机器上不起作用:
这将无限期挂起
/usr/local/bin/git ls-remote git://github.com/sstephenson/rbenv.git -h refs/heads/v0.4.0
这导致:curl: (35) Unknown SSL protocol error in connection to github.com:443
curl https://github.com
这导致:正在解析 github.com (github.com)... 192.30.252.130 正在连接到 github.com (github.com)|192.30.252.130|:443... 已连接。 无法建立 SSL 连接。
wget https://github.com
openssl 显示没有证书(这是最好的提示吗?)
openssl s_client -connect github.com:443 CONNECTED(00000003) write:errno=104 --- no peer certificate available --- No client certificate CA names sent --- SSL handshake has read 0 bytes and written 305 bytes --- New, (NONE), Cipher is (NONE) Secure Renegotiation IS NOT supported Compression: NONE Expansion: NONE ---
为什么 Github 这里有问题?我的系统是否阻止了 SSL 流量?防火墙规则也可能阻止流量。如果是这种情况,请指出,因为我没有知识来确定是否是这个原因。
我不能 git clone
public 并且不属于我的帐户(我有 SSH 密钥)的回购。可以从我自己的 Github 帐户克隆回购协议。
Here is an strace of the command(注意它挂在最后一行)
openssl s_client -connect github.com:443
CONNECTED(00000003)
write:errno=104
我建议您在某些防火墙中间盒后面,它限制了您可以访问的站点。在 https 的情况下,限制取决于目标(它可能正在调查 SSL 握手),因此将允许 TCP 连接,但一旦检测到 "wrong" 目标,就会关闭它,导致对等方重置连接(errno =104).使用 git 相反,它只是阻止端口 9418,因此连接尝试挂起。