# Configurar la autenticación de dos factores para GitLab

## Iniciar sesión

Ir a [GitLab](https://gitlab.com/users/sign_in) para iniciar sesión.

### Ir a configuración de cuenta

Clic en **Edit profile** o **Preferences** para ir a **User Settings**.

### Habilitar autenticación

Ir a **Account** y hacer clic en **Enable two-factor authentication**.

#### En un dispositivo (usualmente teléfono)

Instalar una aplicación compatible:

1. Base en la nube (recomendado porque es posible restaurar el acceso si se pierde el dispositivo):
   * [Authy](https://authy.com/)
   * [Duo-mobile](https://duo.com/product/multi-factor-authentication-mfa/duo-mobile-app)
2. Otro
   * [Google-Authenticator](https://support.google.com/accounts/answer/1066447?hl=en)
   * [Microsoft-Authenticator](https://www.microsoft.com/en-us/security/mobile-authenticator-app)

En la aplicación, agregar una entrada nueva de dos maneras:

* Escanear el código proporcionado por GitLab con la cámara del dispositivo para agregarla automáticamente.
* Ingresar los detalles proporcionados para agregar la entrada manualmente.

### **En GitLab**

1. Ingresar el número de seis dígitos proporcionado por la nueva entrada del dispositivo en Pin code.
2. Descargar los códigos de recuperación proporcionados por GitLab antes de continuar.
3. Clic en **Proceed**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dojo.lkmx.io/gitlab/configurar-la-autenticacion-de-dos-factores-para-gitlab.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
