ssh:连接到主机 bitbucket.org 端口 22:连接超时致命

标签 ssh push bitbucket

整个错误是:

ssh: connect to host bitbucket.org port 22: Connection timed out
fatal: The remote end hung up unexpectedly

当我从不同服务器(国家/地区)上的两个项目推送时,出现此错误。

可能有什么问题?

更新:

使用
ssh -v

我得到这个:
usage: ssh [-somecode] [-b bind_address] [-c cipher_spec]
           [-D [bind_address:]port] [-e escape_char] [-F configfile]
           [-i identity_file] [-L [bind_address:]port:host:hostport]
           [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
           [-R [bind_address:]port:host:hostport] [-S ctl_path]
           [-w tunnel:tunnel] [user@]hostname [command]

最佳答案

这可能会使其再次工作

编辑 ssh 配置文件:
nano ~/.ssh/config
确保你有这些行:

Host bitbucket.org
 Hostname  altssh.bitbucket.org
 Port  443

关于ssh:连接到主机 bitbucket.org 端口 22:连接超时致命,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17826622/

相关文章:

linux - svn ssh 连接的详细日志记录

ssh - 如何将目录从本地机器复制到远程机器

python - 在远程服务器上运行基于 opencv 的 python 脚本,从我的 macbook 转发 ssh 给我一个错误

reactjs - 当我尝试推送我的应用程序时,heroku 不断给我这个错误

yaml - curl命令在位桶CI/CD管道YAML中导致缩进错误

没有 SSH 的 Git 和 Bitbucket

javascript - 与 node.js 的 ssh 持久 session

javascript - 如何: push() function in js not inserting value

ios - 如何仅在应用程序中使用 iOS 推送通知

git - 获取 Bitbucket 私有(private)存储库时出错