--=-Chut7gR9ns7RwtdhhIpL
Content-Type: multipart/mixed; boundary="=-k4ZY8XtcQ04YqH4m6Lrg"
--=-k4ZY8XtcQ04YqH4m6Lrg
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
I'm not quite sure what you were trying to do with the echo lines but
here's the simplest example I can think of.
On client. `ssh -X server` `xlogo`
If you don't get a nice little popup X, then run `echo $DISPLAY`. You
should get something like "localhost:10". If you don't, the server has
disabled X forwarding in SSH, which overrides the -X flag. Just edit
then the /etc/ssh/sshd_config and find "X11Forwarding" and change it to
"yes". My section on X looks like this:
<snip>
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
</snip>
Once you've made that change, `/etc/init.d/sshd restart`, logout and ssh
back in again just like before. Now try `xlogo` and `echo $DISPLAY`.
Let's hear it for SSH X11 forwarding.
Also, I'm not sure there should be a space between the "+" and the IP.
If you really insist on doing this the hard way every time, try `xhost
+192.168.2.100` instead. That should grant access for your client to the
X (X is backwards. IP should be the IP of the computer trying to access
X, i.e. server from which xterm is being launched), 192.168.2.100, to
access the X server that is currently running.
--=20
Bryce C <
Plug@BryceCo.Net>
CoBryce Communications
--=-k4ZY8XtcQ04YqH4m6Lrg
Content-Disposition: inline
Content-Description: Forwarded message - Re: remote X
Content-Type: message/rfc822
Return-Path: <plug-discuss-admin@lists.plug.phoenix.az.us>
Delivered-To: mail.bryceconet.plug@localhost.cobryce.com
Received: from localhost (localhost.localdomain [127.0.0.1]) by
cobryce.myvnc.com (Postfix) with ESMTP id C6EAEAF0A7 for
<mail.bryceconet.plug@localhost>; Fri, 25 Jul 2003 09:10:25 -0700 (MST)
Envelope-to: plug@bryceco.net
Delivery-date: Fri, 25 Jul 2003 12:07:31 -0400
Received: from 66.103.137.65 by localhost with POP3 (fetchmail-5.9.7) for
mail.bryceconet.plug@localhost (single-drop); Fri, 25 Jul 2003 09:10:25
-0700 (MST)
Received: from [68.14.243.59] (helo=pluglist.macrosift.com) by sh2.1-sh.com
with esmtp (Exim 4.20) id 19g56P-0005hC-BO for plug@bryceco.net; Fri, 25
Jul 2003 12:07:30 -0400
Received: from lists.plug.phoenix.az.us (plug [127.0.0.1]) by
pluglist.macrosift.com (Postfix) with ESMTP id F282E1A74E2; Fri, 25 Jul
2003 09:18:04 -0700 (MST)
Delivered-To: plug-discuss@lists.plug.phoenix.az.us
Received: from fed1mtao04.cox.net (fed1mtao04.cox.net [68.6.19.241]) by
pluglist.macrosift.com (Postfix) with ESMTP id 9D5D11A74E1 for
<plug-discuss@lists.plug.phoenix.az.us>; Fri, 25 Jul 2003 09:17:16 -0700
(MST)
Received: from linuxserver.azapple.com ([68.3.248.151]) by
fed1mtao04.cox.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231)
with ESMTP id
<20030725160643.KCWY641.fed1mtao04.cox.net@linuxserver.azapple.com> for
<plug-discuss@lists.plug.phoenix.az.us>; Fri, 25 Jul 2003 12:06:43 -0400
Received: from router.azapple.com (lin-workstation.azapple.com
[192.168.2.10]) by linuxserver.azapple.com (8.12.8/8.12.8) with ESMTP id
h6PG6gYQ019435 for <plug-discuss@lists.plug.phoenix.az.us>; Fri, 25 Jul
2003 09:06:42 -0700
Subject: Re: remote X
From: Craig White <craigwhite@azapple.com>
To: plug-discuss@lists.plug.phoenix.az.us
In-Reply-To: <Pine.LNX.4.44.0307250053000.19175-100000@nina>
References: <Pine.LNX.4.44.0307250053000.19175-100000@nina>
Content-Type: text/plain; charset=UTF-8
Message-Id: <1059149201.4900.11.camel@lin-workstation.azapple.com>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.3 (1.4.3-1)
Sender: plug-discuss-admin@lists.plug.phoenix.az.us
Errors-To: plug-discuss-admin@lists.plug.phoenix.az.us
X-BeenThere: plug-discuss@lists.plug.phoenix.az.us
X-Mailman-Version: 2.0.13
Precedence: bulk
Reply-To: plug-discuss@lists.plug.phoenix.az.us
List-Help:
<mailto:plug-discuss-request@lists.plug.phoenix.az.us?subject=help>
List-Post: <mailto:plug-discuss@lists.plug.phoenix.az.us>
List-Subscribe:
<http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss>,
<mailto:plug-discuss-request@lists.plug.phoenix.az.us?subject=subscribe>
List-Id: Main PLUG discussion list. <plug-discuss.lists.plug.phoenix.az.us>
List-Unsubscribe:
<http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss>,
<mailto:plug-discuss-request@lists.plug.phoenix.az.us?subject=unsubscribe>
List-Archive: <http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/>
Date: 25 Jul 2003 09:06:42 -0700
Status:
Content-Transfer-Encoding: quoted-printable
On Fri, 2003-07-25 at 00:58, der.hans wrote:
> Am 25. Jul, 2003 schw=C3=A4tzte Craig White so:
>=20
> > 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)
>=20
> There's a much better way.
>=20
> 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.
>=20
> $ echo $DISPLAY
> localhost:10.0
>=20
> 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.=20
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
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
--=-k4ZY8XtcQ04YqH4m6Lrg--
--=-Chut7gR9ns7RwtdhhIpL
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQA/IVkr/wbq/C6yyPcRAu50AJ4kS6DlO7NZP5NB6saxR57UHtCLJgCgnuuY
OZ8JSi8J22PchGyiNO6qTOk=
=xZD4
-----END PGP SIGNATURE-----
--=-Chut7gR9ns7RwtdhhIpL--