How To Enable Root Login In Ubuntu 18.04 Lts?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Open the terminal by pressing Ctrl+Alt+T and execute the following command to open /etc/ssh/sshd_config file:
sudo nano /etc/ssh/sshd_config
2. Find the line that says PermitRootLogin and change its value from “no” to “yes”.
3. Save the changes by pressing Ctrl+O and exit by pressing Ctrl+X.
4. Restart the SSH service by executing the following command:
sudo service ssh restart
5. You can now login to your Ubuntu 18.04 server as root user.