From owner-freebsd-questions Wed Mar 15 18:51:36 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 885F537BA6C for ; Wed, 15 Mar 2000 18:51:33 -0800 (PST) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.9.3) id VAA61022; Wed, 15 Mar 2000 21:51:31 -0500 (EST) (envelope-from cjc) Date: Wed, 15 Mar 2000 21:51:30 -0500 From: "Crist J. Clark" To: Sam Carleton Cc: FreeBSD Questions Subject: Re: networking X Windows w/ ssh Message-ID: <20000315215130.C60836@cc942873-a.ewndsr1.nj.home.com> Reply-To: cjclark@home.com References: <38CD87B6.1EF2E99B@miltonstreet.com> <38D0306A.5B6AD0A0@miltonstreet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <38D0306A.5B6AD0A0@miltonstreet.com>; from scarleton@miltonstreet.com on Wed, Mar 15, 2000 at 07:55:04PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Mar 15, 2000 at 07:55:04PM -0500, Sam Carleton wrote: > Sam Carleton wrote: > > > I have a FreeBSD box and two Linux boxes, all have X configured on > > them. I would like to be able to run X Windows on the FreeBSD box and > > open a xterm from one of the Linux boxes. The only catch is that I do > > NOT use rsh, I use ssh2. I tried this (from page 315 of Complete > > FreeBSD): > > > > ssh linuxbox1 xterm -ls -display freebsd:0 > > > > I get this error: > > > > Xlib: connection to "freebsd:0.0" refused by server > > Xlib: Client is not authorized to connect to Server > > xterm Xt error: Can't open display: glob:0 > > > > What do I have to change to allow authorization? > > I love answering my own questions:) The answer is run xhost on the > machine you are working from with an argument of the machine you want to > run X apps on: > > freebsd# xhost linuxbox1 > freebsd# ssh linuxbox1 xterm -ls -display freebsd:0 > > It works well! No it doesn't. It defeats the whole purpose of X tunneling. The connection from linuxbox1 to freebsd will not be encrypted. Did you try what I previously suggested? freebsd% ssh linuxbox1 xterm -ls What happened? Just so you know, if you need to use 'xhost' you've lost. The connection is insecure. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message