【踩坑】:The client has disconnected from the server. Reason: Unable to authenticate using any of

背景:Alpine Linux 3.12.1系统

建议先去了解一下,sshd_config配置中的一些信息sshd_config配置信息详解

修改sshd_config配置信息

# 查看配置信息
cat /etc/ssh/sshd_config
# 编辑配置信息
vi /etc/ssh/sshd_config

PermitRootLogin xxx 修改 为yes(修改这个配置就可以解决远程连接问题)

查考资料链接

PubkeyAuthentication yes修改为no(跟这个也没有关系)

PasswordAuthentication no 修改改为 yes(或许跟这个没有关系)

Guess you like

Origin blog.csdn.net/weixin_45511500/article/details/115828887