几个小时前刚买了个日本的云服务器,在蓝梯子买的,是 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 按钮,点击后可以进入服务器。
求助大家,我该怎么解决?
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.