Chapter 2. Remotely accessing a graphical application
You can remotely launch a graphical application on a RHEL server and use it from the remote client. From RHEL 10 clients, you can remotely launch applications that support the Wayland display protocol by using the waypipe
proxy, and applications that support the X11 display protocol by using X11 forwarding. You can also configure a RHEL 10 server for remotely launching graphical applications via SSH with X11 forwarding.
2.1. Launching an application remotely by using waypipe
You can access a Wayland-based graphical application on a RHEL server from a remote client by using SSH and the waypipe
proxy.
Prerequisites
-
The
waypipe
package is installed on both the client and the remote system. - The application can run natively on Wayland.
Procedure
Launch the application remotely through
waypipe
and SSH.waypipe -c lz4=9 ssh <remote-server> <application-binary>
[local-user]$ waypipe -c lz4=9 ssh <remote-server> <application-binary> 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 Copied! - Confirm that a server key is valid by checking its fingerprint.
Continue connecting by typing
yes
.Warning: Permanently added '<remote-server>' (ECDSA) to the list of known hosts.
Warning: Permanently added '<remote-server>' (ECDSA) to the list of known hosts.
Copy to Clipboard Copied! When prompted, type the server password.
remote-user's password: [remote-user]$
remote-user's password: [remote-user]$
Copy to Clipboard Copied!
2.2. Launching an application remotely by using X11 forwarding
You can access a graphical application on a remote RHEL server from a client by using SSH.
Prerequisites
- X11 forwarding over SSH is enabled on the server. For details, see Enabling X11 forwarding on the server.
Ensure that an X11 display server is running on your system:
- On RHEL, X11 is available by default in the graphical interface.
- On Microsoft Windows, install an X11 server such as Xming.
- On macOS, install the XQuartz X11 server.
- You have configured and restarted an OpenSSH server. For details, see Configuring the OpenSSH server and client by using RHEL system roles.
Procedure
Log in to the server by 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])?
[<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 Copied! Confirm that a server key is valid by checking its fingerprint.
NoteIf you plan to log in to the server on a regular basis, add the user’s public key to the server by using the
ssh-copy-id
command.Confirm by typing yes.
Warning: Permanently added '<remote_server>' (ECDSA) to the list of known hosts.
Warning: Permanently added '<remote_server>' (ECDSA) to the list of known hosts.
Copy to Clipboard Copied! When prompted, type the password of the user on the remote server:
<remote_user>'s password: [<remote_user> ~]$
<remote_user>'s password: [<remote_user> ~]$
Copy to Clipboard Copied! Launch the application from the command line:
[<remote_user>]$ <application-binary>
[<remote_user>]$ <application-binary>
Copy to Clipboard Copied!
To skip the intermediate terminal session, use the following command:
[<local_user>]$ ssh user@server -X -Y -C <application-binary>
[<local_user>]$ ssh user@server -X -Y -C <application-binary>
2.3. Enabling X11 forwarding on the server
Configure a RHEL server so that remote clients can use graphical applications on the server over SSH.
Procedure
Install basic X11 packages:
dnf install xorg-x11-xauth xorg-x11-fonts-\* dbus-x11
# dnf install xorg-x11-xauth xorg-x11-fonts-\* dbus-x11
Copy to Clipboard Copied! NoteYour applications might require additional graphical libraries.
Enable the
X11Forwarding
option in the/etc/ssh/sshd_config
configuration file:X11Forwarding yes
X11Forwarding yes
Copy to Clipboard Copied! The option is disabled by default in RHEL.
Restart the
sshd
service:systemctl restart sshd.service
# systemctl restart sshd.service
Copy to Clipboard Copied!