Date: Sat, 30 Oct 2004 18:39:34 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Gary Aitken <garya@Dreamchaser.org> Cc: questions@freebsd.org Subject: Re: xhost problem Message-ID: <20041030173934.GB97779@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <4183C639.1000406@Dreamchaser.org> References: <4183C639.1000406@Dreamchaser.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--CdrF4e02JqNVZeln
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Sat, Oct 30, 2004 at 10:50:01AM -0600, Gary Aitken wrote:
> I can't get an xterm from another machine to display on my 5.3 system.
> I've tried xhost with the ip of the machine I want to allow in,
> and finally tried xhost + to allow any machine in,
> but attempts to display still fail with "Can't open display w.x.y.z:0.0"
>=20
> firewall_enable and ipfilter_enable are NO at the moment,
> and the source (xterm) system is open on the internal network.
>=20
> What am I missing?
Xservers don't listen on the network by default nowadays, because
running X across the network in plain is about as bad as using rsh(1),
or unencrypted telnet(1). Ideally you should be tunnelling the X
session through ssh(1) -- look for the description of the '-X' and
'-Y' flags to ssh ('-Y' is only available with more recent versions of
ssh(1)), and the 'ForwardX11' command you can use in
/etc/ssh/ssh_config or ~/.ssh/config.
If you're tunnelling through ssh(1), everything should be setup
automatically for you: your $DISPLAY on the remote machine will look
like 'localhost:10.0' or 'remote.host.name:10.0' -- don't fiddle with
the $DISPLAY setting, or you'll never get the forwarding to work.
Cheers,
Matthew
--=20
Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks
Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614 Bucks., SL7 1TH UK
--CdrF4e02JqNVZeln
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)
iD8DBQFBg9HWiD657aJF7eIRArqkAJ96tX047yvnyngJKXRRyhvO0BUuUACcDkwP
R62ZR3uqbPImCivkjEcZPrA=
=5YNp
-----END PGP SIGNATURE-----
--CdrF4e02JqNVZeln--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041030173934.GB97779>
