1, using: sudo passwd root root password set, as shown below:
2, using su root to test whether the user can enter the root, if the password has been set # Description appears successful root user, as shown below:
3, into /usr/share/lightdm/lightdm.conf.d/ directory using gedit 50-unity-greeter.conf & command to open the 50-unity-greeter.conf file, as shown below:
4, add the following information in the open file, the user may choose to set log log, as shown below:
user-session=ubuntu
greeter-show-manual-login=true
all-guest=false
5, reboot the system, enter the user name information can occur, as shown below:
6, enter the root user name and password, as shown below:
7, appears: /root/.profile read error is found, the dialog box, as shown below:
8, clicking the OK button, to enter the system, use the command to modify the file vi /root/.profile, found mesg n, revised as: tty -s && mesg n, as shown below:
9, save and exit, then reboot the system.
10, make sure ssh service system has been installed,
If not installed install: sudo apt-get install openssh-server
[If you need a static ip with Internet access, modify / etc / network, and service networking restart]
Start the service: sudo service ssh start
11、测试服务是否已经开启:sudo ps -e | grep ssh
12、修改配置文件:
sudo vi /etc/ssh/sshd_config
PermitRootLogin prohibit-password
改为
PermitRootLogin yes
13、重启服务:sudo service ssh restart
14、使用winscp连接 填入用户名密码即可连接上。