Disable Two Factor Authentication through Command Line

itmonitor

Well-Known Member
Apr 10, 2014
83
15
83
cPanel Access Level
Root Administrator
Hi!

I enabled 2FA and it works very well. Thank you.

Just in case my smartfone is lost/stolen, I was looking on how to reset 2FA through SFTP/Command Line. After resetting 2FA, I can login into the server and setup a new authentication in a new smartfone.

However, I could not find the reset command line in the Documentation. Please, could you post here the command line to reset 2FA? A good idea would be to add it to the 2FA Documentation.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463

itmonitor

Well-Known Member
Apr 10, 2014
83
15
83
cPanel Access Level
Root Administrator
When activating 2FA through command line, I could see the 2FA Enable function on the WHM Dashboard, in the left side vertical menu. After enabling it in WHM Dashboard, seems like it disappears from the WHM Dashboard. Cannot find it anymore. Please, any ideas where to find the 2FA settings into the WHM Dashboard?