SSH not setting DISPLAY variable

Date May 27, 2008 by Isaac

This morning I did a bare bones CentOS 5.1 installation onto a machine. I don't need Gnome, KDE, or any other window manager. However, I did need to forward the display over SSH for one of the programs that I need to run. For the life of me I could not figure out the correct libraries to install to get the DISPLAY environment variable set when doing "ssh -X". Finally, I ran "ssh -X -v" and that revealed what I needed. A simple

yum install xauth

fixed the problem and now my SSH happily sets the DISPLAY variable.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>