Report this

What is the reason for this report?

How to enable root login

Posted on February 1, 2018

I dont know how to get access to it and the article didnt help me

it just said login as root but i cant because its denied and i dont know how to enable it. i dont know how to get access to the console to enable ROOT



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Can you describe more about it. where you want to enable is it ssh?

Hi,

Root login over ssh can be enabled by the doing following steps,

Login as a root user. use any text editor, here i am using vim editor.

#vim /etc/ssh/sshd_config

uncomment the line below line

PermitRootLogin yes

Then restart the sshd service. That’s it. Let me know if you face any issues.

What happens when you can’t login using console either? This is literally a brand new droplet. No password was emailed initially so I reset root password from the access tab and received a new password via email. That password just displays as invalid login when attempting to login as @root from console.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.