> 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/rdm/es/knowledge-base/how-to-articles/x11-forwarding.md).

# Reenvío de X11

El reenvío X11 le permite ejecutar aplicaciones gráficas instaladas en un host Unix/Linux remoto y mostrarlas localmente en una máquina Windows. Al usar Xming y SSH, se requiere una configuración adecuada para evitar errores habituales, como variables de visualización ausentes o fallos de autenticación.

Esta guía describe los requisitos previos para que X11 funcione correctamente y proporciona consejos de resolución de problemas paso a paso en caso de que surjan incidencias.

### Requisitos previos

Antes de comenzar, asegúrese de que se cumplen las siguientes condiciones:

* Xming está instalado y en ejecución en su máquina Windows.
* El reenvío X11 está habilitado en la configuración de su cliente SSH (propiedades de la entrada - Reenvío X11 - Habilitar reenvío X11).

  ![](https://cdnweb.devolutions.net/docs/RDMW6119_2025_1.png)
* El host remoto tiene aplicaciones X11 instaladas (p. ej., xclock).

### Pasos para usar el reenvío X11

1. Inicie Xming en su máquina Windows.
2. Conéctese al host remoto mediante SSH con el reenvío X11 habilitado.
3. Ejecute una aplicación X11 en el host remoto (p. ej., xclock).

### Resolución de problemas habituales de X11

#### Variable DISPLAY no establecida

Compruebe ***echo $DISPLAY***. La salida esperada debería ser algo como localhost:10.0. Si la salida está vacía, el reenvío X11 no funciona. Compruebe que está habilitado en la configuración del cliente SSH.

#### Error "Invalid MIT-MAGIC-COOKIE-1"

Este error indica que el transporte X11 funciona, pero la autenticación ha fallado.

1. Compruebe el fichero .Xauthority abriendo un terminal e introduciendo `ls -l ~/.Xauthority`.
2. Si el fichero no existe o pertenece a otro usuario, la autenticación puede fallar.
3. Consulte la lista de X Auth.
4. Debería ver una entrada como: ***midopd1/unix:10 MIT-MAGIC-COOKIE-1 \<long\_hex\_string>.*** Si no es el caso, cree la entrada.

#### Problemas de reenvío X11 al usar su

1. Desde el usuario SSH original, introduzca `xauth list - /tmp/xauthcookies`.
2. Cambie al nuevo usuario.
3. Introduzca `xauth merge /tmp/xauthcookies`.
4. Intente ejecutar de nuevo la aplicación X11 (p. ej., xclock).

Seguir los pasos anteriores garantiza que el reenvío X11 mediante SSH con Xming en Windows esté configurado correctamente. La mayoría de los problemas se deben a variables DISPLAY mal configuradas o a problemas de autenticación X11. Abordar estos errores habituales debería resolver los problemas típicos de reenvío X11.


---

# 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 dynamically by asking a question.

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

```
GET https://docs.devolutions.net/rdm/es/knowledge-base/how-to-articles/x11-forwarding.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
