Ce contenu n'est pas disponible dans la langue sélectionnée.

Chapter 13. Remotely accessing an X11-based application


You can remotely launch a graphical X11-based application on a RHEL server and use it from the remote client using X11 forwarding.

Note

This procedure works for legacy X11 applications, that is, applications that support the X11 display protocol.

13.1. Enabling X11 forwarding on the server

Configure a RHEL server so that remote clients can use graphical applications on the server over SSH.

Procedure

  1. Install basic X11 packages:

    # dnf install xorg-x11-xauth xorg-x11-fonts-\* xorg-x11-utils dbus-x11
    Copy to Clipboard Toggle word wrap
    Note

    Your applications might rely on additional graphical libraries.

  2. Enable the X11Forwarding option in the /etc/ssh/sshd_config configuration file:

    X11Forwarding yes
    Copy to Clipboard Toggle word wrap

    The option is disabled by default in RHEL.

  1. Restart the sshd service:

    # systemctl restart sshd.service
    Copy to Clipboard Toggle word wrap

13.2. Launching an application remotely using X11 forwarding

Access a graphical application on a RHEL server from a remote client using SSH.

Prerequisites

Procedure

  1. Log in to the server using SSH:

    [local-user]$ ssh -X -Y remote-server
    The authenticity of host 'remote-server (192.168.122.120)' can't be established.
    ECDSA key fingerprint is SHA256:uYwFlgtP/2YABMHKv5BtN7nHK9SHRL4hdYxAPJVK/kY.
    Are you sure you want to continue connecting (yes/no/[fingerprint])?
    Copy to Clipboard Toggle word wrap
  2. Confirm that a server key is valid by checking its fingerprint.

    Note

    If you plan to log in to the server on a regular basis, add the user’s public key to the server using the ssh-copy-id command.

  3. Continue connecting by typing yes.

    Warning: Permanently added 'remote-server' (ECDSA) to the list of known hosts.
    Copy to Clipboard Toggle word wrap
  4. When prompted, type the server password.

    local-user's password:
    [local-user ~]$
    Copy to Clipboard Toggle word wrap
  5. Launch the application from the command line:

    [remote-user]$ application-binary
    Copy to Clipboard Toggle word wrap
Tip

To skip the intermediate terminal session, use the following command:

$ ssh user@server -X -Y -C binary_application
Copy to Clipboard Toggle word wrap

13.3. Additional resources

Red Hat logoGithubredditYoutubeTwitter

Apprendre

Essayez, achetez et vendez

Communautés

À propos de la documentation Red Hat

Nous aidons les utilisateurs de Red Hat à innover et à atteindre leurs objectifs grâce à nos produits et services avec un contenu auquel ils peuvent faire confiance. Découvrez nos récentes mises à jour.

Rendre l’open source plus inclusif

Red Hat s'engage à remplacer le langage problématique dans notre code, notre documentation et nos propriétés Web. Pour plus de détails, consultez le Blog Red Hat.

À propos de Red Hat

Nous proposons des solutions renforcées qui facilitent le travail des entreprises sur plusieurs plates-formes et environnements, du centre de données central à la périphérie du réseau.

Theme

© 2026 Red Hat
Retour au début