Connecting to remote host via putty

Bharath Naidu asked:

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.

My answer:

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

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.