remote X

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Craig White
Date:  
Subject: remote X
On Fri, 2003-07-25 at 00:58, der.hans wrote:
> Am 25. Jul, 2003 schwätzte Craig White so:
>
> > I have VNC up, running and working just fine but I think that I would
> > like to play with xwindows without the VNC. I am considering that this
> > is a trusted network...
> >
> > I have tried...
> >
> > on server - 'xhost + 192.168.2.100
> >
> > and from client - logged in via ssh as a user and then...
> >
> > 'xterm -display 192.168.2.100'
> >
> > and gotten an error (something like, unable to open display)
>
> There's a much better way.
>
> Make sure you have xauth on the remote machine. Make sure X11 forwarding is
> enabled in sshd on the remote machine. ssh making sure to allow X11
> connections ( -X ). If you 'echo $DISPLAY' on the remote machine at that
> point you should see the remote machine's name followed by a colon, a
> number, a dot and 0.
>
> $ echo $DISPLAY
> localhost:10.0
>
> This setup will tunnel everything over the encrypted ssh connection.

-----
I'm sure that there's a lot of wisdom in this message but the intended
recipient doesn't quite get it which is why I am more than receptive to
a 'howto" point.

Server is RH9
Client is RH8
xauth is indeed installed on both
X11Forwarding is enabled in /etc/ssh/sshd_config on both

I had figured it to be easier to learn to do this without ssh to
minimize elements to configure and would have added ssh to the
configuration after I got it working.

Anyway, what I have done this far is...

from cli on client...
Server - logged in via ssh, as root 'xhost + 192.168.2.100'
            su - username then 'xterm -display 192.168.1.100'


got the message unable to open display

tried 'echo $DISPLAY 192.168.2.100'
and 'echo $DISPLAY 192.168.2.100:0'
and 'echo $DISPLAY 192.168.2.100:1'

none workee

I don't get it.

Thanks,
Craig