Graphical login with Xming from Windows

XFCE session
You might have wondered how you could connect to a machine using a graphical environment from Windows or Linux. This is how. I've been using Xming for this very purpose and like the software. There is a public domain version you can download for free. If you find the software useful in any way, please consider a donation. Too many people think everything in IT should be free these days while not giving back to the community in one form or another.

1. Installing Xming on Windows

Use the notes on the site of Xming to install it. For this section I've used the Windows installer. There is an optional fonts package you can install as well. After installing the Xming package, you'll need to create an xlaunch file. You can use the Xlaunch program to do it for you or create one manually.

On the server you are connecting to, the following should be installed:

  • Working graphical Xorg/X11 environment
  • XFCE, KDE, Gnome, openbox, blackbox, ...
  • SSHD server

Check if the sshd config contains the X forwarding lines:

cat /etc/ssh/sshd_config
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes

If you needed to add those, don't forget to restart sshd.

2. Create a launch file

To create a connection file, go to C:\Program Files\Xming and start XLaunch.exe. Choose 1 window for this example. Try the other options later to get feel of what the various options do.

Xming Launch

The next screen is "Select how to start Xming". Since the machine is running Xfce, we want to start an xfce4-session over ssh. Select "Start a program".

Xming start

Enter the session, use Putty (plink), and enter your machine and ssh password.

Xming info

We opt to use the Clipboard and no OpenGL acceleration this time. First we will try and connect, time enough afterwards to increase performance.

Xming session info

Save the configuration.

Xming Save config

3. Launch Xming

In Windows you can double click the launch file to actually start the connection. If this is the first time connection to the server, you might get a popup from ssh asking if you trust the remote machine.

Xming start connection

Next we get a popup screen to enter the ssh password again.

Xming credential pop up

The end result is a connection to the graphical environment of the machine over SSH.

Xming desktop

From Linux you can connect from your own X environment:

ssh -X user@hostname "xfce4-session"

4. Launch file

This is the content of a launch file. In this case OpenGL is enabled. You could copy and change it to suite your needs.

<?xml version="1.0" encoding="utf-8"?>
<XLaunch xmlns=""