Linux – X11 from ssh on Mac OSX to Linux server doesn’t work — Gtk-WARNING **: cannot open display

gtklinuxmac-osxx11x11forwarding

I installed a program wireshark on my remote linux box and I'm trying to run it with X11 from my mac computer using SSH.
Here's my terminal…

macosx$ echo $DISPLAY
/tmp/launch-f4w6k6/:0

macosx$ ssh -X root@myserver.com
root@myserver.com's password: 

remoteubuntu:~# echo $DISPLAY

remoteubuntu:~# wireshark

(wireshark:18927): Gtk-WARNING **: cannot open display: 

Here's a few lines from /etc/ssh/sshd_config

X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
#UseLogin no

Thanks for the help!

Best Answer

Try the -Y option for X11 forwarding instead it disables some X11 security checks and tends to work better from OSX.