1

I am getting the following error when i try to connect to a remote host.

Can't connect to X11 Windows server using "0:0" as the value of the display variable.

How do i get past it?

Other info:

  1. I am running a windows machine and the host is unix based.
  2. I have Xming installed.
  3. I have given the display command as export DISPLAY=0:0
  4. I have checked X11 option in SSH.
Michael Hampton
  • 244,070
  • 43
  • 506
  • 972

2 Answers2

1

Don't attempt to set the DISPLAY environment variable on the remote host. This is set automatically by ssh and should not be changed.

Michael Hampton
  • 244,070
  • 43
  • 506
  • 972
1

X11 forwarding will work if the following conditions are met:

  • X server installed locally
  • X11 forwarding checked in Putty (or -X option of ssh at the command line)
  • X11 forwarding enabled in the server config (/etc/ssh/sshd_config)
  • package providing the xauth binary installed on the remote machine
Andrew Schulman
  • 8,811
  • 21
  • 32
  • 47
Benoit
  • 396
  • 2
  • 10