iWi*_*ard 5 ssh push bitbucket
整个错误是:
ssh: connect to host bitbucket.org port 22: Connection timed out
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)
当我从两个位于不同服务器(国家/地区)的项目中推送时,我收到此错误.
可能有什么问题?
更新:
运用
ssh -v
Run Code Online (Sandbox Code Playgroud)
我明白了:
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]
Run Code Online (Sandbox Code Playgroud)
这可能会让它再次运作
编辑ssh配置文件:
nano ~/.ssh/config
确保你有这些线:
Host bitbucket.org
Hostname altssh.bitbucket.org
Port 443
Run Code Online (Sandbox Code Playgroud)
检查ssh传出连接是否没有iptable规则,如果为true,则添加端口22.
对于多个端口:
iptables -t filter -A OUTPUT -p tcp --match multiport --dport 22,1111,2222,3333 -j ACCEPT
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8580 次 |
| 最近记录: |