X11 forwarding not working

Hello,

I'm on Mac OSX High Sierra.

I recently started having problems with X11 forwarding from a linux VM using both ssh -Y and ssh -X.

So now when I call `gedit`, for example, I am returned the following message:


** (gedit:21242): WARNING **: Could not open X display

/private/tmp/com.apple.launchd.TLzSKRc4Ax/: unknown host. (nodename nor servname provided, or not known)

/private/tmp/com.apple.launchd.TLzSKRc4Ax/: unknown host. (nodename nor servname provided, or not known)

/private/tmp/com.apple.launchd.TLzSKRc4Ax/: unknown host. (nodename nor servname provided, or not known)

(gedit:21242): Gtk-WARNING **: cannot open display: localhost:13.0


Note that my DISPLAY variable is set correctly, when I ssh, to be `localhost:x.0' (where x is a variable number). To check I type echo $DISPLAY.


I have reinstalled XQuartz twice - with rebooting - and I also have tried to play around with the /etc/ssh/ssh_config file setting and set ForwardX11 and ForwardAgent both to yes. No luck unfortunately. Do you have any clue what might be going wrong?


Cheers,

Giuseppe

N.B. At the beginning of the ssh -Y session I also get the warning `Warning: No xauth data; using fake authentication data for X11 forwarding.` but I also used to get it when the X11 forwarding was working fine

X11 forwarding not working
 
 
Q