Question

ROOT LOGIN ERROR ( AUTO CLOSE AFTER CHANGE PASSWORD )

here is my problem, when i do login as root after password reset, then it told me to login with the password and i can login, but after change the new password it auto close my PUTTY.

Please help me to fix this problem.


Submit an answer
Answer a question...

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.

KFSys
Site Moderator
Site Moderator badge
April 29, 2022

Hi @meimei,

Do you have PasswordAuthentication turned on in your /etc/ssh/sshd_config? Maybe it changed to the default one for some reason.

In such cases, you can use the recovery console to gain access back and check if that’s the case.

https://docs.digitalocean.com/products/droplets/resources/recovery-console/

Log in to your Droplet and see if you have PasswordAuthentication turned on in the mentioned config file.

Lastly, I want to mention that it’s recommended that you use SSH keys rather than Password authentication as t’s considered more secure.