跳转至

0x10-SSH 登录时出现如下错误:Disconnected:No supported authentication methods available 问题处理

description: 这个问题应该在新买的服务器上都会遇到这个(我买的时 digitalocean)

简介

ssh 登录时出现如下错误:Disconnected:No supported authentication methods 原因:PasswordAuthentication 的默认值为 yes,SSH服务将其值置为 no 以禁用密码验证登录,导致此类故障。需要修改 PasswordAuthentication 配置解决此问题。

快速入门

vim /etc/ssh/sshd_config
PasswordAuthentication yes # 修改这个

附录

  • 重启 sshd
    systemctl restart sshd
    

最后更新: 2021-07-26
创建日期: 2021-03-04