【发布时间】:2013-07-24 06:23:15
【问题描述】:
整个错误是:
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 -v (或 -vv, -vvv, ...)
-
@golimar - 我通过终端在 mac mac 上通过 ssh 连接。
-
所以你使用的是 ssh 命令?那么你应该可以做'ssh -v'
-
那个命令是做什么的?
-
@CroiOS 当我尝试使用不正确的帐户/公钥连接到 bitbucket 时,我看到了这个问题。很可能是公钥/私钥文件问题