一、启用root用户:
1、sudo passwd root //修改密码
2、vim
/usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
修改配置文件在最后加上:greeter-show-manual-login=true 3、重启
4、修改/root/.profile,避免
错误提示为:Error found when loading /root/.profile stdin: is not a tty
的提示 在/root/.profile中添加 tty -s && mesg n
二、安装OpenSSH
server:
1、使用apt命令安装openssh server sudo apt-get install
openssh-server
2、配置 openssh server sudo vi
/etc/ssh/sshd_config 找到PermitRootLogin no一行,改为PermitRootLogin
yes
3、重启 openssh server
sudo service ssh restart |