Simple question: How to make X windows appear on remote machine (not X forwarding)

Andreas Tobler andreast-list at
Tue Apr 15 12:49:09 PDT 2008

Dustin Spicuzza wrote:
> Hey,
> I have a machine sitting next to me that I ssh into, logged in as user 
> Y. On the machine, I have X running, and I'm logged in as the same user 
> Y. Is it possible to execute an application over ssh, that makes its 
> windows show up on the machine next to me? I tried setting the $DISPLAY 
> variable, but no luck so far. Thanks.

Make sure your sshd_config on the machine you log in contains:

X11Forwarding yes

Then you can do 'ssh -Y user at machine'

After a successful login you can launch any x application w/o setting 
any DISPLAY vars.


More information about the xorg mailing list