In most cases, we mainly interact with remote using SSH on the terminal. However, we can run GUI applications hosted on remote machines using SSH. This is handy tool as sometimes we may require a GUI interaction to perform certain tasks.
In this tutorial, I will show you how to run remote Graphical Applications on SSH using Putty on Windows machines.
Check our tutorial on how to run SSH on windows if you are new.-
- Before we start, we will require X11 server installed on the Windows machine. Download X11 server here: https://sourceforge.net/projects/xming/
- Once downloaded, install the applications using the default options provided by the installer. Once completed, you will be running x11 server.
- If you are connecting to a Linux based remote machine, you will require the
xauth
package installed. This package is installed by default inDebian
andRedHat
Systems. Use the package manager of your distribution to search and install this package. - Next, we need to tell Putty to forward all X11 connections to your computer.
- Navigate to Connections - SSH - X11
- Click on Enable X11 forwarding
- In the X display location, enter
localhost:0
Ensure that the Hostname/IP
are provided under the Session tab and launch a remote connection to the machine.
Now you can run any graphical applications running on the remote machine.