Bitbucket ssh 测试 returns`远程:ssh_exchange_identification:读取:操作超时`
Bitbucket ssh test returns `remote: ssh_exchange_identification: read: Operation timed out`
我正在设置一台新机器,在这样做的过程中,我试图从 bitbucket 中提取 repos,这对 git 或 hg 都不起作用。我已将 public 密钥添加到 bitbucket。
这是我在 运行 bitbucket 在故障排除指南中建议的调试命令时看到的:
$ ssh -Tv hg@bitbucket.org
OpenSSH_6.9p1, LibreSSL 2.1.8
debug1: Reading configuration data /Users/toadjamb/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug1: Connecting to bitbucket.org [104.192.143.2] port 22.
debug1: Connection established.
debug1: identity file /Users/therrick2/.ssh/id_rsa type 1
debug1: identity file /Users/therrick2/.ssh/id_rsa-cert type 5
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.9
ssh_exchange_identification: read: Operation timed out
原来是ip地址需要加入白名单
在我发布这个问题时,我没有意识到网络被锁得这么严。
我正在设置一台新机器,在这样做的过程中,我试图从 bitbucket 中提取 repos,这对 git 或 hg 都不起作用。我已将 public 密钥添加到 bitbucket。
这是我在 运行 bitbucket 在故障排除指南中建议的调试命令时看到的:
$ ssh -Tv hg@bitbucket.org
OpenSSH_6.9p1, LibreSSL 2.1.8
debug1: Reading configuration data /Users/toadjamb/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug1: Connecting to bitbucket.org [104.192.143.2] port 22.
debug1: Connection established.
debug1: identity file /Users/therrick2/.ssh/id_rsa type 1
debug1: identity file /Users/therrick2/.ssh/id_rsa-cert type 5
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.9
ssh_exchange_identification: read: Operation timed out
原来是ip地址需要加入白名单
在我发布这个问题时,我没有意识到网络被锁得这么严。