Development

gui-applications-ssh

Captain Salem 1 min read

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

  1. Before we start, we will require X11 server installed on the Windows machine. Download X11 server here: https://sourceforge.net/projects/xming/
  2. Once downloaded, install the applications using the default options provided by the installer. Once completed, you will be running x11 server.
  3. If you are connecting to a Linux based remote machine, you will require the xauth package installed. This package is installed by default in Debian and RedHat Systems. Use the package manager of your distribution to search and install this package.
  4. Next, we need to tell Putty to forward all X11 connections to your computer.
  5. Navigate to Connections - SSH - X11
  6. Click on Enable X11 forwarding
  7. In the X display location, enter localhost:0
image-20200609091725931
image-20200609091725931

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.

Share
Comments
More from Cloudenv

Cloudenv

Developer Tips, Tricks and Tutorials.

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to Cloudenv.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.