tags:

views:

176

answers:

2
  • open cygwin shell
  • run ssh -Y user@MACOSXSERVER
    • "No xauth data using fake authentication data for X11 forwarding" <-- Warning
    • login MACOSXSERVER OK
  • set DISPLAY=CYGWINIP:0.0
  • xterm &

And I get the following error

  • Xlib: connection to "CYGWINIP:0.0" refused by server Xlib: No protocol specified

What went wrong?

+1  A: 

You're rewriting the value of $DISPLAY as set by sshd. This is preventing X forwarding from working. Stop doing this.

Ignacio Vazquez-Abrams
A: 

running xhost + before run ssh solves this problem.

prosseek
It also allows absolutely anyone to connect to your X server, which is a security hole.
Ignacio Vazquez-Abrams