Results 1 to 8 of 8

Thread: Two Factor Authentification enabled - No login possible

  1. #1
    Join Date
    May 2020
    Beans
    4

    Two Factor Authentification enabled - No login possible

    Hi,

    I followed this tutorial to enable 2FA on my server. I followed the tutorial on the root user, as I wanted the root user only to get secures via 2FA. As I wanted to relogin and try out if everything worked, it said Access Denied after entering my password. I have tried it now many times, everytime it gives me an Access Denied. I saved the emergency scratch codes. How do I gain access again?

    Thanks.

  2. #2
    Join Date
    Sep 2014
    Location
    United States
    Beans
    254
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Two Factor Authentification enabled - No login possible

    Did you add the secret key to the authentication application? You should be prompted for a challenge. Be sure you have Internet connection.

  3. #3
    Join Date
    May 2020
    Beans
    4

    Re: Two Factor Authentification enabled - No login possible

    Yes it's added, I see new codes generated every few seconds.

  4. #4
    Join Date
    Sep 2014
    Location
    United States
    Beans
    254
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Two Factor Authentification enabled - No login possible

    You're logging into SSH or local (TTY/GMD)?

  5. #5
    Join Date
    May 2020
    Beans
    4

    Re: Two Factor Authentification enabled - No login possible

    Ssh

  6. #6
    Join Date
    Sep 2014
    Location
    United States
    Beans
    254
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Two Factor Authentification enabled - No login possible

    Can you log in locally without ssh? I'm afraid you aren't receiving the prompt.

    Edit: Have you tried a reboot?

  7. #7
    Join Date
    May 2020
    Beans
    4

    Re: Two Factor Authentification enabled - No login possible

    I can reboot the server tonight, however I was hoping to find a solution without a reboot.
    The server is being rent from an dedicated server company, which has remove login only. Unfortunatelly, don't have the option to login locally.

  8. #8
    Join Date
    Sep 2014
    Location
    United States
    Beans
    254
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Two Factor Authentification enabled - No login possible

    I'm hoping that the reboot would restart openssh-server and enable the challenge prompt. If not, you may need to login locally. Wishing you the best.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •