需要在防火墙上打开哪些端口等才能成功使用 BitBucket

Ric*_*ter 2 firewall mercurial

上周末,我们的 IT 部门安装了更新的防火墙。因此,我们无法再从 BitBucket 上的存储库中拉取(并推送到)。

尝试执行 Mercurial 操作(例如拉取)会导致消息[Errno 10053] An established connection was aborted by the software in your host machine

显然,通信序列中出了点问题,但我对协议不够熟悉,无法确定是什么。我怀疑 Mercurial 希望使用现在被阻止的端口。应该打开哪些端口以允许 Mercurial 与托管在 BitBucket.org 上的存储库正确运行?

Mar*_*ler 5

有两个端口在使用,具体取决于协议:

  • HTTPS: 443端口这是用于hg clonehg pull以及hg pushhttps://bitbucket.org/<user>/<repo>/网址。

    它还用于使用网络浏览器在 Bitbucket 上进行正常浏览。换句话说,如果您可以使用浏览器访问 Bitbucket,那么 Mercurial 也应该可以使用。

  • SSH:口22这是用于hg clonehg pullhg pushssh://hg@bitbucket.org/<user>/<repo>/网址。

Mercurial 没有做任何特别的事情——它只是在这些端口上发送正常的流量。

您的 IT 部门应该能够判断他们是否阻止了来自防火墙内部的连接尝试(通过查看他们的日志)。如果问题仍然存在,您还应该查看代理设置