> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/server/web-interface/administration/configuration/server-settings/security/multifactor/yubikey.md). Agents can also search and read this documentation through its [MCP server](https://docs.devolutions.net/~gitbook/mcp).

# YubiKey

Use a YubiKey one-time password (Yubico OTP) as the multifactor authentication method of Devolutions Server: setup, sign-in and requirements.

The ***YubiKey*** multifactor authentication (MFA) method of Devolutions Server asks the user to press a YubiKey, which types a Yubico one-time password (OTP). Devolutions Server checks the OTP with the Yubico validation service (YubiCloud) and checks that it comes from the YubiKey registered for the user.

## Prerequisites

* A YubiKey with the Yubico OTP function enabled (the factory setting of most YubiKeys).
* Internet access from the Devolutions Server machine to the Yubico validation service.

## Enable the method

1. Go to ***Administration*** – ***Server settings*** – ***Multi-factor***.
2. In ***Supported MFA***, check ***YubiKey***. The method has no other setting.
3. Click ***Save***.

Changing these settings requires the ***Server settings*** – ***MFA*** – ***Edit*** administrative permission.

## Set up the YubiKey (user)

1. Open the setup at sign-in, or from the ***Multi-factor*** section of your preferences.
2. "Connect and press your Yubikey to set up your account.": click ***Validation code***, then touch the YubiKey. It types the OTP.
3. Click ***Submit***. Devolutions Server registers the identity of this YubiKey: only this key works afterwards.

## Sign in with the YubiKey

"Please enter a YubiKey code": click ***YubiKey code***, touch the YubiKey, then click ***Submit***.

* An empty field shows "The MFA code is required"; an OTP that is refused, comes from another YubiKey or was already used shows "Invalid Yubikey code".
* To use a new YubiKey, reconfigure the method in your preferences (***Reconfigure MFA***), or ask an administrator.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.devolutions.net/server/web-interface/administration/configuration/server-settings/security/multifactor/yubikey.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
