Configure X11 Forwarding with PuTTY and Xming


Usually, Graphical mode is turned off in Linux servers due to Security and Resource optimization. In such environments running a GUI application is not a trivial task. However, we can use PuTTY and XMing to forward X11 display to a windows client over SSH protocol.

In this article, we will first install required packages on our Linux Server, then we will configure XMing and PuTTY for X11 forwarding on Windows.


Table of Contents:


System Specification:

One Microsoft Windows client and a Linux server.


Required Software:

Download and Install following two software on Windows client.

- XMing X Server for Windows


Install required packages on Linux server:

Connect to Linux machine and install necessary packages for X11 forwarding.

# yum install -y xauth

We will require a Linux GUI application to test X11 forwarding configurations. Therefore, we are installing xclock to test the configuration.

# yum install -y xclock


Configure XMing:

After installing Xming on Windows run xlaunch application.



Default configuration will work for us. Therefore, click on Next.


Click on Next.


Click on Next.


Click on Finish.

XMing application has been started and it is placed in System Tray of Windows.


Configure PuTTY:

Once installed, run PuTTY application.


Add a session of our Linux machine therein.


Besides other configuration, we are also required to configure X11 forwarding as follows:


Save and open the session.

login as: root
Authenticating with public key "rsa-key-20190101"
Last login: Tue Jan  1 21:16:23 2019 from
/usr/bin/xauth:  file /root/.Xauthority does not exist
# xclock

Xming will capture the Display open a window to run xclock application.


We have successfully configured X11 forwarding using PuTTY and XMing.

Post a Comment

Previous Post Next Post