创建了一个新用户发现,无法通过账号和密码登录

1. /etc/ssh路径修改sshd_config文件
将PasswordAuthentication no 改为PasswordAuthentication yes
2.然后重启ssh:
service sshd restart
systemctl restart sshd.service
3.此时可以通过用户名和密码登录了

博客介绍了Linux系统中,新用户无法通过账号和密码登录的解决方法。通过修改/etc/ssh路径下的sshd_config文件,将PasswordAuthentication no改为yes,然后重启ssh,即可实现用户名和密码登录。
创建了一个新用户发现,无法通过账号和密码登录

1. /etc/ssh路径修改sshd_config文件
将PasswordAuthentication no 改为PasswordAuthentication yes
2.然后重启ssh:
service sshd restart
systemctl restart sshd.service
3.此时可以通过用户名和密码登录了

426

被折叠的 条评论
为什么被折叠?