From owner-freebsd-questions Mon Mar 13 17:22:30 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 2298637B658 for ; Mon, 13 Mar 2000 17:22:25 -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 UAA34158; Mon, 13 Mar 2000 20:22:18 -0500 (EST) (envelope-from cjc) Date: Mon, 13 Mar 2000 20:22:18 -0500 From: "Crist J. Clark" To: Sam Carleton Cc: FreeBSD Questions Subject: Re: networking X Windows with ssh Message-ID: <20000313202218.C33859@cc942873-a.ewndsr1.nj.home.com> Reply-To: cjclark@home.com References: <38CD8849.B7826A73@miltonstreet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <38CD8849.B7826A73@miltonstreet.com>; from scarleton@miltonstreet.com on Mon, Mar 13, 2000 at 07:32:05PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Mar 13, 2000 at 07:32:05PM -0500, 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? 1) Lose the '-display freebsd:0.' SSH handles the X forwarding issues automagically. 2) Make sure that the SSH server, linuxbox1, has 'X11Forwarding yes' set in the /usr/local/etc/sshd_config (or at least that's where the option is in SSH, not sure about SSH2). And personally, I just do, % xterm -e ssh linuxbox1 To get a new SSH in a window, a bit less overhead. (Actually, I alias 'xssh' to something a bit more complex than that.) -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message