Question

I have forgot user password but remmeber root password who have no ssh access permission?

Hello,

I have forgot user password. I have the root password with no ssh access.

nano /etc/ssh/sshd_config PermitRootLogin no UseDNS no AllowUsers user

I do have firewall that I think not allowing me to access console.

What should you suggest me?

Thank you in advance.


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

You can reset your droplet’s root password in the ‘Access’ tab and then use the new password to log in to it using the Remote Console.

even if you gave this permission ALL=(ALL:ALL) ALL to the user, you still need to give more permissions to the user to write / read/ execute files and/ or folders. <br> <br>I’m afraid you will have to restore your droplet to the point where your root login is enabled…!!! <br> <br>you could try to login and try the pass for the user you forgot if you can…otherwise, the only choice is the one I have mentioned… <br>

I have backup only. user was set these permissions ALL=(ALL:ALL) ALL