Debian12 ssh 远程 root 用户登陆
vim /etc/ssh/sshd_config
找到#PermitRootLogin一行 改成PermitRootLogin yes,也就是删掉前端的注释并做改后面的值为yes
删掉#PasswordAuthentication yes前面的#
<Esc>:wq 保存退出
sudo service ssh restart
重启 ssh 服务,就可以用 root 用户远程 ssh 登录了
vim /etc/ssh/sshd_config
找到#PermitRootLogin一行 改成PermitRootLogin yes,也就是删掉前端的注释并做改后面的值为yes
删掉#PasswordAuthentication yes前面的#
<Esc>:wq 保存退出
sudo service ssh restart
重启 ssh 服务,就可以用 root 用户远程 ssh 登录了
su rootvim /etc/gdm3/daemon.conf在security下面加上这么一行:AllowRoot = true<Esc>:wq 保存退出vim /etc/pam.d/gdm-password用#注释掉 auth required pam...