> For the complete documentation index, see [llms.txt](https://enterprise.hideez.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://enterprise.hideez.com/hideez-enterprise-server/administration/how-to-enable-two-factor-authentication-at-hideez-enterprise-server.md).

# How to enable two-factor authentication at the Hideez Enterprise Server?

{% hint style="info" %}
This guide explains how to enable two-factor OTP (One-Time Password) authentication for accessing the Hideez Enterprise Server (HES) web interface. To enable OTP for other websites, you must configure the appropriate settings on those sites.
{% endhint %}

***

### **Enabling 2FA for Admin Accounts**

#### **Step 1:**

In the top-right corner of the window, click on the **profile icon** and select **Profile** from the drop-down list.

<figure><img src="/files/uGgJ8aHTMZZpQwDTrWuh" alt=""><figcaption></figcaption></figure>

#### **Step 2:**

In the Profile section, go to **One-Time Password** and click on the **Add OTP App** button.

<figure><img src="/files/thvgaVzwkxm9dh2D5Ij5" alt=""><figcaption></figcaption></figure>

#### **Step 3:**

Follow the on-screen instructions to set up 2FA.

<div><figure><img src="/files/08AKubuxU8S7FVpTq8AT" alt="" width="563"><figcaption></figcaption></figure> <figure><img src="/files/GsqWoMXDpGTtLtpWI6SA" alt="" width="371"><figcaption></figcaption></figure></div>

You can use [**Hideez Authenticator**](/hideez-authenticator-app/quick-overview.md) as the OTP generation application.

#### **Step 4:**

After successfully enabling two-factor authentication, you will be prompted to save your **recovery codes**. You will receive 10 recovery codes, each consisting of 8 characters. These can be used in case you are unable to generate an OTP code.

{% hint style="warning" %}
**Important:** Save these recovery codes in a secure place.
{% endhint %}

Two-factor authentication is now configured, and you can use it with your OTP application.

***

### **Using Hideez Key for OTP Generation**

If you want to use the [**Hideez Key** to generate OTPs](/use-cases/hideez-key/password-manager-and-otp-generator.md#enabling-otp-input-for-your-accounts), when creating your admin account, enter the **Secret Key** provided during the OTP setup in the corresponding field.

<img src="/files/Az3UlWGPUeIv7tbHBQMd" alt="" width="375">

The **Secret Key** is a 32-character value provided in **Step 3**.

\
[Learn more about creating accounts via Hideez Client](/hideez-client-app/account-management/account-creation.md). \
[Learn more about creating accounts on HES](/hideez-enterprise-server/accounts/how-to-work-with-personal-employee-accounts.md). \
[How to enter credentials with the Hideez key](/hideez-key-enterprise-edition/how-to-enter-credentials-with-hideez-key.md).

***

### **Disabling 2FA on HES**

#### **Step 1:**<br>

Go to the **Profile** tab and locate the **One-Time Password** section. Click **Disable 2FA**.

![](/files/6hmWpwaUfuC3RDfhF0vG)

#### **Step 2:**<br>

Confirm the action to disable two-factor authentication.

{% hint style="info" %}
Two-factor authentication is now disabled, but you can enable it again at any time.
{% endhint %}

***

### **Resetting Recovery Codes**

When you disable and then re-enable 2FA, your recovery codes will be reset.

{% hint style="info" %}
**Note:** If you reset the OTP app without disabling 2FA, the recovery codes will **not** be reset.
{% endhint %}

***

### **Logging In with a Recovery Code**

If you cannot enter the OTP code during login, you can use a recovery code.

#### **Step 1:**<br>

Enter your login and password.

#### **Step 2:**<br>

Click on the **One-Time Password** button.

#### **Step 3:**<br>

Click **Log in with a recovery code**.

<figure><img src="/files/41bOGZD40YHP14q8yfR7" alt="" width="265"><figcaption></figcaption></figure>

#### **Step 4:**<br>

Enter one of your previously saved recovery codes and click **Login**.

<figure><img src="/files/Y9au0NQl01A8MQM5bI4M" alt="" width="262"><figcaption></figcaption></figure>

***

{% hint style="info" %}
This completes the setup and usage guide for two-factor authentication on Hideez Enterprise Server.
{% endhint %}
