搬瓦工 ssh 登陆不上求助 - V2EX
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 2486 次点击
    这是一个创建于 1321 天前的主题,其中的信息可能已经有所发展或是发生变。
    今天发现部署在搬瓦工服上的 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     Solana     1156 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 24ms UTC 17:17 PVG 01:17 LAX 09:17 JFK 12:17
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86