root通过ssh和控制台登录Debian

1 确保安装了ssh:
apt install openssh-server

2 编辑 /etc/gdm3/daemon.conf:
[security]
AllowRoot = true

3 取消注释 /etc/pam.d/gdm-password :
auth   required        pam_succeed_if.so user != root quiet_success

4 编辑ssh配置文件 sshd_config:
PermitRootLogin yes
posted @ 2023-04-05 10:03  Peter_Yi  阅读(32)  评论(0编辑  收藏  举报