整个错误是:
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/