Ubuntu 18.04 Start root account and authorize remote login

Ubuntu 18.04 has just been on the market for 2 months, download and install, try it out~

The installation interface looks a lot more comfortable, and the installation speed is much faster than the previous 17.04 and 16.04. Sorry, no screenshots. 

After Ubuntu is installed, the root account is not activated by default. This makes remote management inconvenient and needs to be manually turned on.

 

1. If ssh is not installed, you need to install it 

  sudo apt install openssh-server

2.  sudo passwd root  

3.  sudo vim /etc/ssh/sshd_config

  PermitRootLogin prohibit-password改成PermitRootLogin yes

4.  sudo systemctl restart sshd

You're done! 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326115592&siteId=291194637