> 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 X11

Configure el X11 forwarding con Xming y SSH en Remote Desktop Manager y resuelva los errores habituales de pantalla y autenticación.

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

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

### Requisitos previos

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

* Xming está instalado y en ejecución en su máquina Windows.
* El X11 forwarding está habilitado en la configuración de su cliente SSH (propiedades de la entrada - X11 forwarding - Enable X11 forwarding).
* El host remoto tiene aplicaciones X11 instaladas (por ejemplo, xclock).

### Pasos para utilizar el X11 forwarding

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

### Resolución de problemas habituales de X11

#### La variable DISPLAY no está definida

Compruebe ***echo $DISPLAY***. La salida esperada debería ser algo como localhost:10.0. Si la salida está vacía, el X11 forwarding 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 si existe 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. Ver 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 X11 forwarding al utilizar 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 (por ejemplo, xclock).

Seguir los pasos anteriores garantiza que el X11 forwarding a través de SSH utilizando 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 de X11. Abordar estos errores habituales debería resolver los problemas típicos del X11 forwarding.


---

# 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.
