求助:刚买的云服务器无法 ssh 连接 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
taxze
V2EX    问与答

求助:刚买的云服务器无法 ssh 连接

  •  
  •   taxze 155 天前 1316 次点击
    这是一个创建于 155 天前的主题,其中的信息可能已经有所发展或是发生改变。

    几个小时前刚买了个日本的云服务器,在蓝梯子买的,是 vpc 线路,购买完成后,实例创建完成。我尝试 root+密码进行 ssh 登陆,但是服务器主动关闭了连接,谷歌后发现要关闭代理,有可能封了 ip ;关了代理后,要么就是连接超时,要么就是让我二次输入一个密码,我填写 root 的密码后,就出现下面的错误:

    Starting a new connection to: "109.xxx.xxx.xxx" port "22" Starting address resolution of "109.xxx.xxx.xxx" Address resolution finished Connecting to "109.xxx.xxx.xxx" port "22" Connection to "109.xxx.xxx.xxx" established Starting SSH session Remote server: SSH-2.0-OpenSSH_9.6p1 Ubuntu-3ubuntu13.5 Agreed KEX algorithm: ecdh-sha2-nistp256 Agreed Host Key algorithm: ecdsa-sha2-nistp256 Agreed server-to-client cipher: aes128-ctr MAC: hmac-sha2-256 Agreed client-to-server cipher: aes128-ctr MAC: hmac-sha2-256 Agreed client-to-server compression: none Agreed server-to-client compression: none Handshake finished Checking host key: 8d:77:fc:65:ce:cc:e1:c4:4e:xx:xx:xx:xx:xx:xx:xx Host "109.xxx.xxx.xxx":"22" is known and matches Authenticating to "109.xxx.xxx.xxx":"22" as "root" Disabling authentication using publickey: Private Key is empty Available client authentication methods: password,keyboard-interactive Authentication that can continue: password Authenticating using password method Authentication failed (password) Partial success: no Authentication that can continue: password Authenticating using password method Authentication failed (password) Partial success: no Authentication that can continue: password Authenticating using password method Authentication failed (password) Partial success: no Authentication that can continue: password No more authentication methods to try

    我尝试了谷歌+gpt 给出来的方案进行修改/etc/ssh/sshd_config ,但是没有效果。

    目前我还是无法 ssh 连接,只能在蓝梯子的后台管理界面,有个 vnc 按钮,点击后可以进入服务器。

    求助大家,我该怎么解决?

    9 条回复    2025-06-10 13:44:30 +08:00
    LittleState
        1
    LittleState  
       155 天前 via Android
    直接 vnc 上连接下本地的 sshd 试试呢,看能连上吗。
    ssh [email protected]
    taxze
        2
    taxze  
    OP
       155 天前
    @LittleState 试了,可以连接
    LittleState
        3
    LittleState  
       155 天前 via Android
    @taxze 那不然从服务端看一下 sshd 日志报什么信息。还有可能是不是 pam 配置什么限制了,再看看这俩配置有啥问题没 /etc/ssh/sshd_config 、/etc/pam.d/sshd
    Foxkeh
        4
    Foxkeh  
       155 天前
    什么系统? 看看完整的/etc/ssh/sshd_config
    aeron
        5
    aeron  
       155 天前
    换端口试试,以前碰见过一次新加坡的死活连不上,换端口就可以了
    anviod
        6
    anviod  
       155 天前
    换 cockpit 试试?
    taxze
        7
    taxze  
    OP
       155 天前
    我用重装成 win2012 的系统,也还是就 vnc 可以连接,远程进不去
    taxze
        8
    taxze  
    OP
       155 天前
    @anviod 尝试了,安装启动后,9090 的网址打不开
    taxze
        9
    taxze  
    OP
       155 天前
    能连了,提工单给我解决了,换了个 ip 就好了
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     4775 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 26ms UTC 09:48 PVG 17:48 LAX 01:48 JFK 04:48
    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