V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
通过以下 Referral 链接购买 DigitalOcean 主机,你将可以帮助 V2EX 持续发展
DigitalOcean - SSD Cloud Servers
youthfire
V2EX  ›  VPS

搬瓦工 ssh 登陆不上求助

  •  
  •   youthfire · 2022-05-22 14:19:22 +08:00 · 1576 次点击
    这是一个创建于 703 天前的主题,其中的信息可能已经有所发展或是发生改变。
    今天发现部署在搬瓦工服上的 bark 连接报错,随后发现 ssh 也登录不上了。用内建的 root shell-interactive 上去 curl 返回 200 ,说明服务工作正常。google 了一圈,说 ping 可以通,但 ssh 不通,可能是 tcp 阻断。从 port.ping.pe 结果看无论是原先的 ssh 登录端口,还是 bark 的 8080 端口,不管中美都是 successful 状态。这是不是代表没阻断?

    应该怎么处理呢?谢谢大家
    第 1 条附言  ·  2022-05-25 10:39:18 +08:00
    最后确定是 ip 被本地营运商 block 了,在国内其他地区和国外都可以成功连接,蜂窝数据下也可以连接。重制整套系统和更换端口号都尝试了,最终迁移到其他数据区更换 ip 后正常连接
    ruixue
        1
    ruixue  
       2022-05-22 14:28:52 +08:00
    给 ssh 套个代理试试
    Buges
        2
    Buges  
       2022-05-22 14:30:42 +08:00 via Android
    ssh -v
    youthfire
        3
    youthfire  
    OP
       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
        4
    Buges  
       2022-05-22 14:48:58 +08:00 via Android   ❤️ 1
    @youthfire
    >Connection established
    连上了,与中间链路无关,你服务器 sshd 配置问题。
    另外你 IP 暴露了,v2ex 是无法删帖和编辑的,建议下次发这种内容放到一个 pastebin 服务上并设置自动过期。
    ruixue
        5
    ruixue  
       2022-05-22 14:54:38 +08:00   ❤️ 1
    @youthfire 看起来不是网络的问题,检查一下 vps 上的 ssh 服务状态是否正常
    toptitles
        6
    toptitles  
       2022-05-22 17:17:20 +08:00   ❤️ 1
    换端口
    Tyuans
        7
    Tyuans  
       2022-05-22 20:31:40 +08:00   ❤️ 1
    我前一阵也是,出国报错好像 tls 握手有问题,然后登陆 ssh 就费劲。时不时掉线。用普通的 ss 似乎又没问题。不知道怎么回事儿。过几天自己好了。
    机器是日本大阪。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2843 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 15:37 · PVG 23:37 · LAX 08:37 · JFK 11:37
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.