ssh 连不上服务器,怎么检查

2021-10-06 09:59:17 +08:00
 zxCoder

我 ssh 连不上服务器,但是找了另一个人试了一下,他可以连上去,那应该是我这边的问题?我要怎么检查呢?

ssh: connect to host xx.xx.xx.xx port 22: Connection timed out

试过把代理关了,用自己手机流量,都不行


然后我 ssh 我自己的一台云服务器,又是正常的,我凌乱了,到底是哪的问题

1657 次点击
所在节点    问与答
7 条回复
lwh0328
2021-10-06 10:01:42 +08:00
防火墙呢
zxCoder
2021-10-06 10:04:52 +08:00
@lwh0328 服务器的防火墙?还是我电脑的防火墙
Kamitora
2021-10-06 10:08:25 +08:00
ssh -vvv YOURHOST
zxCoder
2021-10-06 10:11:49 +08:00
@Kamitora

OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
debug3: Failed to open file:C:/Users/xxx/.ssh/config error:2
debug3: Failed to open file:C:/ProgramData/ssh/ssh_config error:2
debug2: resolve_canonicalize: hostname xx.xx.xx.xx is address
debug2: ssh_connect_direct
debug1: Connecting to xx.xx.xx.xx [xx.xx.xx.xx] port 22.
debug3: finish_connect - ERROR: async io completed with error: 10060, io:000001E961E8F200
debug1: connect to address xx.xx.xx.xx port 22: Connection timed out
ssh: connect to host xx.xx.xx.xx port 22: Connection timed out
ddzzhen
2021-10-06 10:26:14 +08:00
他在墙外,你在墙里?
zxCoder
2021-10-06 10:28:50 +08:00
@lwh0328
@Kamitora
@ddzzhen

草,我是沙比,忘记这是 10 开头的 ip,我要挂个实验室的 vpn 才能 ssh 上
czwstc
2021-10-07 01:32:19 +08:00
找到原因了就 Append 一下吧

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/806046

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX