Hi guys anybody have the same issue.

I have done the password reset last day.

When I try to access the console by web. It says “All Configured Authentication Method Failed”.

When I try to login through putty or terminal.It says me to enter the password I received in email. After entering it. It asks for new password & Retype it, After retyping the password the connection to my domain automatically closed.

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.

×
Submit an Answer
2 answers

Hi @ivainfraad,

This could be a problem with spawning a shell because of incorrect settings for the shell path in /etc/passwd

To check this, determine that your user shell path exists and is executable;

# cat /etc/passwd | grep Username
username:x:1000:1000:Tom H:/home/username:/bin/bash <-- check this exists

Check shell exists:

# file /bin/bash
/bin/bash: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically 
linked (uses shared libs), for GNU/Linux 2.6.32, stripped

also, check that the shell is not set to either /sbin/nologin or /bin/false, which would also block login, even with a successful authentication.

You can enter your Droplet using the Recovery Console. You can follow this documentation on how to enter your into your Droplet:

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

Basically, you’ll reset your root password and use it via the root user on the Recovery console to connect to it. Once inside you can see what’s causing the exact issue and what happened with the upgrade.

Additionally, try using an SSH key to enter your droplets rather than a password.

Hello, @ivainfraad

Once you have received your new password you can either ssh to the droplet using your ssh client or access the droplet using the DigitalOcean console:

https://www.digitalocean.com/docs/droplets/resources/console/

Log In with the Console

From the DigitalOcean Control Panel, first click the name of the Droplet you want to access, then select Access from the left navigation. Click the Launch Console button to open a web-based console session.

When the console opens, click the console screen and press ENTER to ensure that the login prompt has focus. At the login prompt, enter the user you want to log in as. This is typically the root user or a user configured with sudo privileges.

When prompted, enter the password associated with the account. For security purposes, your password will not be displayed on the screen as you type or paste it into the command line.

Once you’ve entered the password, press ENTER. If this is the first time you’ve logged in after resetting the root password through the control panel, you are prompted to enter the password again, then asked to choose a new password.

Once you’ve successfully entered your credentials you should be logged in to your Droplet.

You can also check our tutorial here:

https://docs.digitalocean.com/products/droplets/resources/reset-root-password

Hope that helps!
Regards,
Alex