[Solved] Turn off 2FA on WHM with SSH Command Line

This morning I tried logging into one of my WHM servers with 2FA and it was not working.

(BTW: If you don’t have 2FA setup on your WHM login page then you are missing a great security feature on your Cpanel server).

I checked the Cpanel forums and found a page here showing how to turn off 2FA on WHM for a user using the API through command line, BUT IT DID NOT WORK.

disable-2fa-with-ssh

THE SOLUTION
After a quick chat with Cpanel Support Team they told me that running the command below through SSH will disable 2FA on the WHM server.

After running the command above I was able to log back into WHM without being prompted for 2FA credentials, then set up 2FA again and was back in business.

Phew! Panic Over.