凉城旧巷
Python从入门到自闭,Java从自闭到放弃,数据库从删库到跑路,Linux从rm -rf到完犊子!!!

ssh无法root用户登录与登录界面无法root登录

无法用root登录

1、ssh不能用root登录

修改/etc/ssh/sshd_config文件,

把  PermitRootLogin Prohibit-password  #添加注释掉

新添加:PermitRootLogin yes

 

2、登录界面无法选择用户登录

修改/usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf

# 在末端添加下面两行命令

greeter-show-manual-login=true      # 手工输入登陆系统的用户名和密码
allow-guest=false         # 不允许guest登录(可选)
posted on 2021-11-05 17:58  凉城旧巷  阅读(540)  评论(0编辑  收藏  举报