X Forwarding Problem with ssh

Posted by lane

Recently I ssh’d into one of my servers using the command ’ssh -X hostname’ from the client. I then tried to launch an X11 application but received the error:

Gtk-WARNING **: cannot open display:

I then found the DISPLAY environment variable was blank. A little searching around and I found that the I needed the xauth program installed. A

yum install xorg-x11-xauth

on the server did the trick. Now when I ssh in using the -X option, X11 applications run fine.

Leave a Reply