root用户被禁用登录解决方法
1、用普通用户登录,修改下方文件
2、编辑 /etc/ssh/sshd_config
3、修改下方两个参数为yes
PermitRootLogin yes
PasswordAuthentication yes
保存退出后执行 sudo systemctl restart sshd
1、用普通用户登录,修改下方文件
2、编辑 /etc/ssh/sshd_config
3、修改下方两个参数为yes
PermitRootLogin yes
PasswordAuthentication yes
保存退出后执行 sudo systemctl restart sshd