A root automatic login
First automatic login user specified
sudo vim /etc/systemd/system/getty.target.wants/[email protected]
Then set free password
sudo vim /etc/passwd
The root: x: 0: 0: root: / root: / bin / bash in the x removed, namely: root :: 0: 0: root: / root: / bin / bash, if you want to specify other users can find row corresponding to the user name on the first row.
Two root allow ssh remote login
sudo vim / etc / ssh / sshd_config, find PermitRootLogin without-password changed to PermitRootLogin yes
service ssh restart