By mpgmateus
Hello! How are you?
Well, for security purposes I am trying to disable access from root. I am using the line: PermitRootLogin no". Password Authentication turned off too. I am using SSH Keys.
The problem is when I access the Digital Ocean dashboard and click on reset root password. The new password is sent ok to my e-mail but I can’t access ssh root@ip again.
What should I do?
(If I change to PermitRootLogin on, I can access and recover it perfectly).
The point is recover access from clicking “reset root password” an gain access with permissions root login turned off…
Hope you understand (:
Thanks!!
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!
In this case you would need to login via the web console available in your DigitalOcean Cloud account area for that droplet.
Much more info can be found here:
https://www.digitalocean.com/docs/droplets/resources/console/
In short, however, you should be able to block SSH for root login but still be able to login as root via the console.
Hope this helps and good luck!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.