ubuntu系统启用root用户远程登陆配置步骤
配置步骤
- cat /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
[Seat:*]
user-session=ubuntu
greeter-show-manual-login=true
autologin-user=root
- cat /etc/pam.d/gdm-autologin
#auth required pam_succeed_if.so user != root quiet_success
- cat /etc/pam.d/gdm-password
#auth required pam_succeed_if.so user != root quiet_success
- sudo vim /etc/ssh/sshd_config
找到配置参数:
PermitRootLogin yes
echo "tty -s && mesg n || true" >> /root/.profile