Question

Can't open new console - "all authentication methods failed"

Posted August 12, 2021 1.2k views
DigitalOcean

I’m trying to open new console from browser, but after messgaes “registering ssh”, then “connecting to droplet”, I’m getting “all authentication methods failed” and black screen.
Yesterday everything was working and I haven’t changed anything.

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
4 answers

Hello, @kurepchik

You can try to open the console in a different browser and see if the issue is still persisting.

You will usually use the console if you can’t access your droplet using ssh via an ssh client and it’s usually the last resort option when it comes to troubleshooting.

You can also check our docs on How to Connect to Droplets with SSH:

https://www.digitalocean.com/docs/droplets/how-to/connect-with-ssh/

There are two options at the bottom of the doc:
Connect with OpenSSH
and
Connect with PuTTY

Hope that this helps!
Regards,
Alex

  • Hello, Alex!
    It appeared that “all authentication methods failed” error happens only if a logging in as root and only with new console.
    I’m able to connect to my droplet with fillezila or Putty as root or using recovery console for example.
    I’m also able to log in as different sudo user with new console. But not with root user.
    Do you know why is that so or can I just always use recovery console? I just used to browser console I think.

    • Hello, @kurepchik

      I’m checking this with our support team at the moment. I will update you once I have more information.

      Regards,
      Alex

    • Hello, @kurepchik

      Can you please confirm if port 22 is not blocked in the firewall configuration? If you’re using IFW you can enable ssh and port 22 with these commands:

      • sudo ufw allow ssh
      • sudo ufw allow 22

      Regards,
      Alex

      • Port 22 is not blocked, as I said earlier - I can log in to droplet as root with Putty, Fillezila, and Recovery Console.
        New Droplet Console fails to log in only as root user from browser.
        Anyway, I can use Putty, so nevermind I think..

        • Hello, kurepchik

          It is recommended to use an ssh-client like PuTTY in order to perform your daily tasks. The console is intended as a last resort option to access your droplet and restore normal connectivity.

          Regards,
          Alex

  • Help! We are having the same issue!

    I can’t ssh in and when I try to use the web console to log in, I get:

    all configured authentication methods failed

    I have tried using two browsers: safari and brave.

Would love to know if there is a fix for this. Getting the same error as the OP. I intentionally have root access disallowed over ssh for security reasons and am wondering if there is a workaround.

  • Hello, SandyLightCyanClam

    This is related to the fact that you have disabled the ssh root login. You can set the PermitRootLogin to yes in the /etc/ssh/sshd_config and then give it another try.

    Regards,
    Alex

My system clock was four hours behind, probably caused by switching between operating systems.

The console worked after correcting my system clock.