搬瓦工 ssh 登陆不上求助

2022-05-22 14:19:22 +08:00
 youthfire
今天发现部署在搬瓦工服上的 bark 连接报错,随后发现 ssh 也登录不上了。用内建的 root shell-interactive 上去 curl 返回 200 ,说明服务工作正常。google 了一圈,说 ping 可以通,但 ssh 不通,可能是 tcp 阻断。从 port.ping.pe 结果看无论是原先的 ssh 登录端口,还是 bark 的 8080 端口,不管中美都是 successful 状态。这是不是代表没阻断?

应该怎么处理呢?谢谢大家
1591 次点击
所在节点    VPS
7 条回复
ruixue
2022-05-22 14:28:52 +08:00
给 ssh 套个代理试试
Buges
2022-05-22 14:30:42 +08:00
ssh -v
youthfire
2022-05-22 14:42:20 +08:00
@ruixue 我是 surge 开增强模式当网关用,似乎默认执行的就是 final 代理,是需要额外配置什么规则么?
@Buges 之前没用过,是需要看诊断信息么?
OpenSSH_8.6p1, LibreSSL 3.3.6
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files
debug1: /etc/ssh/ssh_config line 54: Applying options for *
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to 173.242.123.7 [173.242.123.7] port 28421.
debug1: Connection established.
debug1: identity file /Users/tim/.ssh/id_rsa type -1
debug1: identity file /Users/tim/.ssh/id_rsa-cert type -1
debug1: identity file /Users/tim/.ssh/id_dsa type -1
debug1: identity file /Users/tim/.ssh/id_dsa-cert type -1
debug1: identity file /Users/tim/.ssh/id_ecdsa type -1
debug1: identity file /Users/tim/.ssh/id_ecdsa-cert type -1
debug1: identity file /Users/tim/.ssh/id_ecdsa_sk type -1
debug1: identity file /Users/tim/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /Users/tim/.ssh/id_ed25519 type -1
debug1: identity file /Users/tim/.ssh/id_ed25519-cert type -1
debug1: identity file /Users/tim/.ssh/id_ed25519_sk type -1
debug1: identity file /Users/tim/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /Users/tim/.ssh/id_xmss type -1
debug1: identity file /Users/tim/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.6
kex_exchange_identification: Connection closed by remote host
Buges
2022-05-22 14:48:58 +08:00
@youthfire
>Connection established
连上了,与中间链路无关,你服务器 sshd 配置问题。
另外你 IP 暴露了,v2ex 是无法删帖和编辑的,建议下次发这种内容放到一个 pastebin 服务上并设置自动过期。
ruixue
2022-05-22 14:54:38 +08:00
@youthfire 看起来不是网络的问题,检查一下 vps 上的 ssh 服务状态是否正常
toptitles
2022-05-22 17:17:20 +08:00
换端口
Tyuans
2022-05-22 20:31:40 +08:00
我前一阵也是,出国报错好像 tls 握手有问题,然后登陆 ssh 就费劲。时不时掉线。用普通的 ss 似乎又没问题。不知道怎么回事儿。过几天自己好了。
机器是日本大阪。

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

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

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

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

© 2021 V2EX