How to fix putty/xming Error: Can't open display error

I do find many instructions and even questions here which are out of date or the answers not helping me. Therefor

Setup

  1. on ArchLinux box: /etc/ssh/sshd_config:
 X11Forwarding yes X11UseLocalhost no
  1. on client putty:

X11 settings

  1. on client xlaunch:

enter image description here

The first time this starts I allow the Windows Firewall rule to be added.

After connecting to the ArchLinux box and attempting to start xeyes I get:

Error: Can't open display:

On the Archlinux box:

 echo $DISPLAY

Gives an empty line.

Variations tried

In 2) setting localhost:0 or 127.0.0.1:0.0 Setting DISPLAY in the Archlinux Box any of the following

  1. export DISPLAY=0.0
  2. export DISPLAY=localhost:0.0
  3. export DISPLAY=127.0.0.1:0.0

will just display Can't open the display with respective setting as display: when starting xeyes.

Which step am I missing?

2 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like