Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.
share|improve this question
Try not to export the DISPLAY option. It should be set automatically by ssh when X11 forwarding is turned on. – Dmitri Chubarov Dec 17 '12 at 10:37
Did you verify x11 forwarding is enabled in your ssh server config? – Zoredache Dec 17 '12 at 16:33

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

share|improve this answer

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
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.