The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

CloudLinux upgrade and two-factor authentication

Discussion in 'CloudLinux' started by peter7070, Jun 16, 2016.

  1. peter7070

    peter7070 Registered

    Joined:
    Jun 16, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Canada
    cPanel Access Level:
    Root Administrator
    Hi there,

    I'm new to Cpanel and have been having trouble upgrading my standard CPanel installation to CloudLinux.

    My problem is that when i did the upgrade on my server, i had the two-factor authentication activated for my root account.. The upgrade itself went very smoothly without any problems.
    When i first came to log in after the update i was asked for my two-factor authentication code that is generated by google authenticator and BOOM the code was incorrect.

    I have tried to restard the server multiple times and still nothing, everytime i try and enter the code it is always invalid. I have CSF activated on the server and until the update i had no problems at all.. I have contacted CloudLinux directly and they seem to say that there is no way that the update could have affected the 2FA.

    Has anyone else had this type of problem ? Is there a way to disable the 2FA from shell seeing that i cannot login to WHM succesfully ?

    Thank you all in advance,
    Peter
     
  2. cPTerrance

    cPTerrance *nix Technical Analyst II / Migrations Specialist
    Staff Member

    Joined:
    Jul 9, 2015
    Messages:
    72
    Likes Received:
    8
    Trophy Points:
    8
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    This will happen if the time is either incorrect on your Server or your device you are using to Generate your code.

    If you need, you can disable it by running the following command within SSH as root:
    Code:
    echo "{}">/var/cpanel/authn/twofactor_auth/tfa_userdata.json
     
Loading...

Share This Page