通过以下 Referral 链接购买 DigitalOcean 主机,你将可以帮助 V2EX 持续发展
› DigitalOcean - SSD Cloud Servers
youthfire
V2EX  ›  VPS

搬瓦工 ssh 登陆不上求助

  •  
  •   youthfire · May 22, 2022 · 3375 views
  •   You need to sign in to view this topic
    This topic created in 1645 days ago, the information mentioned may be changed or developed.
    今天发现部署在搬瓦工服上的 bark 连接报错,随后发现 ssh 也登录不上了。用内建的 root shell-interactive 上去 curl 返回 200 ,说明服务工作正常。google 了一圈,说 ping 可以通,但 ssh 不通,可能是 tcp 阻断。从 port.ping.pe 结果看无论是原先的 ssh 登录端口,还是 bark 的 8080 端口,不管中美都是 successful 状态。这是不是代表没阻断?

    应该怎么处理呢?谢谢大家
    Supplement 1  ·  May 25, 2022
    最后确定是 ip 被本地营运商 block 了,在国内其他地区和国外都可以成功连接,蜂窝数据下也可以连接。重制整套系统和更换端口号都尝试了,最终迁移到其他数据区更换 ip 后正常连接
    ruixue
    ruixue
    May 22, 2022
    1
    给 ssh 套个代理试试
    Buges
    Buges
    May 22, 2022 via Android
    2
    ssh -v
    youthfire
    youthfire
    OP
    May 22, 2022
    3
    @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
    Buges
    May 22, 2022 via Android❤️1
    4
    @youthfire
    >Connection established
    连上了,与中间链路无关,你服务器 sshd 配置问题。
    另外你 IP 暴露了,v2ex 是无法删帖和编辑的,建议下次发这种内容放到一个 pastebin 服务上并设置自动过期。
    ruixue
    ruixue
    May 22, 2022❤️1
    5
    @youthfire 看起来不是网络的问题,检查一下 vps 上的 ssh 服务状态是否正常
    toptitles
    toptitles
    May 22, 2022❤️1
    6
    换端口
    Tyuans
    Tyuans
    May 22, 2022❤️1
    7
    我前一阵也是,出国报错好像 tls 握手有问题,然后登陆 ssh 就费劲。时不时掉线。用普通的 ss 似乎又没问题。不知道怎么回事儿。过几天自己好了。
    机器是日本大阪。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1009 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 18:20 · PVG 02:20 · LAX 10:20 · JFK 13:20
    ♥ Do have faith in what you're doing.