title: SSH 登录时出现如下错误:Disconnected:No supported authentication methods available 问题处理description: 这个问题应该在新买的服务器上都会遇到这个(我买的时 digitalocean)
redirect: 2018-11-13-ssh-login
description: 这个问题应该在新买的服务器上都会遇到这个(我买的时 digitalocean)
简介
ssh 登录时出现如下错误:Disconnected:No supported authentication methods
原因:PasswordAuthentication 的默认值为 yes,SSH服务将其值置为 no 以禁用密码验证登录,导致此类故障。需要修改 PasswordAuthentication 配置解决此问题。
快速入门
vim /etc/ssh/sshd_configPasswordAuthentication yes # 修改这个
附录
- 重启 sshd ``` systemctl restart sshd
```
