Forward X11
To use GUI applications via a SSH connection, you need to:
- first verify that your SSH connections work using the command line without trying to forward GUI/X11:
- connect and log in and use the command hostname to see that you indeed logged in to the machine you wanted to
- have a local X-server on the local machine whose screen/console you want to use
- then configure the connection(s) to forward the GUI/X11 protocol
X Servers
On Linux systems, a local X-server is installed by default (unless you use your Linux system exclusively command line based)
On Apple MacOS systems, you need to install XQuartz - you can do so directly from its own web site or by using Homebrew.
On Microsoft Windows systems, you can either use the Xming X server for Windows in combination with any SSH client that is capable of forwarding X11 - or you can use MobaXterm which is an X server and SSH client combined.
X11 Forward
On Linux and Apple MacOS systems, you forward your X11 through your SSH connection simply by using the -X command line option:
ssh -X -J r1234576@st.cs.kuleuven.be r1234576@name.student.cs.kuleuven.be
On Microsoft Windows systems using PuTTY, you must Enable X11 forwarding in the "PuTTY Configuration" window (in Connection -> SSH -> X11).
On Microsoft Windows systems using MobaXterm, you must enable X11-Forwarding in the Advanced SSH settings.
Once logged in, the windows of the applications you start will be displayed on your local screen.
Depending on the quality of your network connection though, you might notice a lag between the actions with your mouse and/or keyboard and the effect they have on your application windows.

