---
title: 'Tutorial: Set Up 2FA for Your OpenVPN Account and Access Server Portal — Two-Factor Authentication Guide'
canonical: https://openvpn.net/as-docs/v3/tutorials/tutorial--2fa-portal-account/
product: Access Server Docs
description: How to turn on two-factor authentication for your Access Server portal account on OpenVPN.
---

# Tutorial: Set Up 2FA for Your OpenVPN Account and Access Server Portal — Two-Factor Authentication Guide

## Overview

Welcome to this step-by-step tutorial on turning on two-factor authentication (2FA) in the Access Server Portal. Follow these instructions to add an extra layer of security to your account.

This tutorial covers setting up 2FA, saving rescue codes, and switching between 2FA authentication methods. We also include security best practices.

> **Tip**
>
> Your Access Server Portal account is separate from your Admin Web UI administrator account for Access Server.

## Prerequisites

- You must have an existing account on the Access Server Portal.

## Step 1: Sign in to the OpenVPN Access Server portal

1. Open your web browser and go to the following URL: [OpenVPN Access Server Portal](https://myaccount.openvpn.com/signin?explicitProductSelect=true&product=as).
2. Enter your login credentials to sign in.

## Step 2: Navigate to your account settings

1. Once signed in, locate your account name in the bottom corner.
2. Click on your account name to open the account settings menu.
3. Click **My Account**.

## Step 3: Turn on 2FA

1. Click **Security & Privacy** to switch tabs.
2. Click **Enable 2FA** under **Two-Factor Authentication**.
3. In the modal window, enter your password and click **Confirm**.
   - The message displays, "Success! Email Authentication enabled"

## Step 4: Select your 2FA method

1. Select email authentication or authenticator app as your 2FA method.By default, email authentication is selected. We recommend using an authenticator app as it's more secure.
2. When you select the authenticator app, enter your password and click **Confirm**.
3. Enter the verification code sent to your email.
4. Scan the QR code for your authenticator app that displays on the next screen.
5. After the screen saves in the app, click **Next**.
6. Enter the code from the authenticator app and click **Verify**.
   - Rescue codes are displayed on the next screen. **Save these codes**. Refer to the next section for details.
7. After saving your rescue codes, click **I have saved the rescue codes** and click **Confirm**.

   > **Note**
   >
   > When you switch from the email (the default selection when you first enable 2FA) to an authenticator app, you are prompted to enter a verification code from your email.

## Step 5: How to save rescue codes

When you set up 2FA for a TOTP app, such as Google Authenticator, on your phone, we provide you with rescue codes after you’ve saved the secret to your app.

Save your rescue codes by printing or writing them down. You can use one of the codes if you can’t sign in with your authenticator app. Save them with one of these two methods:

1. Click on the **eye** icon to view the codes and write them down.
2. Click on the **download** icon to save your codes to your device.

We require you to acknowledge that you’ve saved your codes to click **Confirm** and complete your 2FA authenticator app setup.

> **Important**
>
> Rescue codes are single-use only.

## Step 6: How to regenerate rescue codes

If you’ve lost your rescue codes, you can regenerate new codes by turning 2FA off and then back on:

> **Note**
>
> This process requires access to your authenticator app to enter a code to turn off 2FA.

1. From the Access Server Portal, click your account icon in the corner.
2. Click **My Account**.
3. Click **Security & Privacy**.
4. Turn off two-factor authentication.
5. Enter your password and verification code.
6. This turns off 2FA, so click the toggle again to turn it back on.
7. Go through the process to turn on 2FA again.
8. Ensure you carefully save your new rescue codes when you reach that step.

## How to switch 2FA methods

You can switch between the available 2FA methods, email or authenticator app, by following these general steps:

1. From the **Security & Privacy** tab, click the radio button to change your 2FA method (selecting either **Email Authentication** or **authenticator App**).
2. Reenter your password.
3. Enter your 2FA code from your current authentication method. (If you are switching from email to authenticator, enter the code sent to your email. If you switch from authenticator to email, enter the code from your authenticator app.)
4. Alternatively, you can enter a rescue code here if you can’t access your email or authenticator app.
   - You’ve successfully switched 2FA authentication methods.

## Security best practices

We recommend following these security best practices:

1. Store your rescue codes somewhere safe and separate from your phone.
2. Print and store the codes safely, such as where you keep your important belongings.
3. Share your codes with another trusted person within your company (if possible).
4. Remember to set a PIN for your phone where you’ve installed your authenticator app.

## Switching devices with authenticator apps

Suppose you need to switch a phone or other device where you’ve saved your secret for 2FA. In that case, you need the time-based one-time password (TOTP) seed. Depending on your app, you can follow the steps to extract that. For instance, Google can export this as a QR code: [Get verification codes with Google Authenticator](https://support.google.com/accounts/answer/1066447).

Refer to the documentation for your authenticator app for instructions on exporting the TOTP seed.

---

Prev: [Account Security](https://openvpn.net/as-docs/v3/tutorials/account-security.md)
Next: [Communication and Notification Preferences](https://openvpn.net/as-docs/v3/tutorials/communication-and-notification-preferences.md)
Index: https://openvpn.net/as-docs/llms.txt
