Question

  • 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?

Was it helpful?

Solution 2

running xhost + before run ssh solves this problem.

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top