From owner-freebsd-questions Wed Mar 15 16:55:29 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail1.one.net (mail.one.net [206.112.192.107]) by hub.freebsd.org (Postfix) with ESMTP id E5D9A37BB36 for ; Wed, 15 Mar 2000 16:55:26 -0800 (PST) (envelope-from carleton@one.net) Received: from port-8-96.adsl.one.net ([216.23.16.96] EHLO miltonstreet.com ident: IDENT-NOT-QUERIED [port 60654]) by mail.one.net with ESMTP id <300524-31495>; Wed, 15 Mar 2000 19:55:17 -0500 Message-ID: <38D0306A.5B6AD0A0@miltonstreet.com> From: Sam Carleton X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: FreeBSD Questions Subject: Re: networking X Windows w/ ssh References: <38CD87B6.1EF2E99B@miltonstreet.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 15 Mar 2000 19:55:04 -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message