CloudLinux upgrade and two-factor authentication

peter7070

Registered
Jun 16, 2016
1
0
1
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
 

TerranceR

Well-Known Member
Jul 9, 2015
73
9
83
Houston, TX
cPanel Access Level
Root Administrator
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