Connecting to a remote X server

Associate
Joined
9 Mar 2004
Posts
2,024
Location
York
Hey guys,

How would I go about connecting to a remote x server that is at a specified address. I have ssh access too if that helps matters. I'm struggling to find any information on how to go about it. I think it should be possible because the uni uses exceed to connect to the server, it's just a matter of knowing what I'm doing!

Cheers anyone

Joe
 
Cant you just do:

Code:
export DISPLAY=remote.x.host:0.0
?

The remote X server would need to be setup to allow non-local connections though. Or am I way off what you're trying to do?
 
I'm not really sure, if possible I would like to open a window within my local X session with the remote X session.

I tried X :1 -query host.domain

but that didn't seem to do the trick. It started an xserver on display 1, but it was just the hatched background and X cursor
 
what about ssh -X username@host or ssh -Y username@host ? Assuming you're going linux - linux the display variable should be handled automagically by openssh.
 
M0KUJ1N said:
what about ssh -X username@host or ssh -Y username@host ? Assuming you're going linux - linux the display variable should be handled automagically by openssh.

Yep that seems to have done it. It doesn't create a new window with X in, but it does allow me to spawn X windows on my server, which is sufficient for my needs.

Thanks
 
Back
Top Bottom