docs/content/security/for-developers/2fa/new-recovery-code.md

21 lines
762 B
Markdown

---
description: Generate a new 2fa recovery code
keywords: Docker, docker, registry, security, Docker Hub, authentication, two-factor
authentication
title: Generate a new recovery code
aliases:
- /docker-hub/2fa/new-recovery-code/
---
If you have lost your two-factor authentication recovery code and still have
access to your Docker Hub account, you can generate a new recovery code.
## Generate a new recovery code
1. Sign in to your Docker Hub account.
2. Select your username and then from the drop-down menu, select **Account Settings**.
3. Navigate to the **Security** tab and select **Click here to generate a new code**.
4. Enter your password.
Your new recovery code is displayed. Remember to save your recovery code
and store it somewhere safe.