ssh无法登陆
报错信息
The client has disconnected from the server. Reason:
Unable to authenticate using any of the configured authentication methods.
PasswordAuthentication yes
AllowUsers *
AllowUsers hadoop@xxx
重启ssh
/etc/init.d/sshd restart
或
systemctl restart sshd
AllowUsers 这个指令后面跟着一串用空格分隔的用户名列表(其中可以使用"*"和"?"通配符)。默认允许所有用户登录。 如果使用了这个指令,那么将仅允许这些用户登录,而拒绝其它所有用户。 如果指定了 USER@HOST 模式的用户,那么 USER 和 HOST 将同时被检查。 这里只允许使用用户的名字而不允许使用UID。相关的 allow/deny 指令按照下列顺序处理: DenyUsers, AllowUsers, DenyGroups, AllowGroups
免密失效排查
https://www.cnblogs.com/tingf/p/15048261.html
aws云主机ssh免密失效
ssh无法登陆
https://www.hechunyu.com/archives/sshwu-fa-deng-lu