It always closes the connection

If I log in to the ubuntu server via ssh, type in the password from the mail everything works fine. But as soon as I type in my new password, where it says "(current) UNIX password: ", I am losing the connection and it says “Connection to closed.”.

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.

I had the exact same problem. Most likely your droplet has an issue in /root/.bashrc file.

  1. Go to “Recovery” and change your boot source to ISO.

  2. Turn off and on your droplet.

  3. Got to “Access” and launch Recovery Console.

  4. Mount your disk by selecting 1 and select 6 to access your file.

  5. In my case, /root/.bashrc was located at /mnt/root/.bashrc

  6. Recover your .bashrc and exit Recovery Console.

  7. Go to “Recover” and change your boot source back to Hard Disk.

  8. Turn off and on your droplet.

This does not work for me either.

When I do access the Access, it doesnt show any password.

The only option is to reset root password, which doesnt change the error i’m having.

Please advise.

Hi @kaanekici,

You’ll need first need to enter the current password of your Droplet and then type in the new one. If you are not sure of the password, you can take it from the Control Panel --> Your Droplet —> Access.

Regards, KDSys