---
title: How to disable 2FA cyberpanel
description: "To disable Google 2FA on cyberpanel, you will need to login to the server via SSH , access the database and update the 2FA settings. ![](https://truehost.com/support/wp-content/uploads/2024/08/image-43.png) Follow the steps below. Access your database by typing either mysql or mariadb ![](https://truehost.com/support/wp-content/uploads/2024/08/image-44.png)…"
url: "https://truehost.com/support/knowledge-base/how-disable-2fa-cyberpanel/"
updated: "2024-09-02"
category: Cyberpanel
---

# How to disable 2FA cyberpanel

To disable Google 2FA on cyberpanel, you will need to login to the server via SSH , access the database and update the 2FA settings.

![](https://truehost.com/support/wp-content/uploads/2024/08/image-43.png)

Follow the steps below.

Access your database by typing either

mysql or mariadb

![](https://truehost.com/support/wp-content/uploads/2024/08/image-44.png)

Now we're on our database shell.

The next operation will require we use cyberpanel database. To enter,  CyberPanel database, use the command:

use cyberpanel;

![](https://truehost.com/support/wp-content/uploads/2024/08/image-45.png)

Now disable 2FA for the admin account with the following command:

`UPDATE loginSystem_administrator SET twoFA = '0' WHERE loginSystem_administrator.id = 1;`

![](https://truehost.com/support/wp-content/uploads/2024/08/image-46.png)

That's it. All done.

Alternatively, you can use the one line command below.

`mysql -u root -p"$(cat /etc/cyberpanel/mysqlPassword)" cyberpanel -e "UPDATE loginSystem_administrator SET twoFA = '0' WHERE loginSystem_administrator.id = 1;"`

You can now login.

![](https://truehost.com/support/wp-content/uploads/2024/08/image-47.png)
