From owner-freebsd-questions@FreeBSD.ORG Thu Jan 22 07:13:00 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0446016A51A for ; Thu, 22 Jan 2004 07:13:00 -0800 (PST) Received: from fw.farid-hajji.net (fw.farid-hajji.net [213.146.115.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC98243D2F for ; Thu, 22 Jan 2004 07:12:56 -0800 (PST) (envelope-from cpghost@cordula.ws) Received: from fw.farid-hajji.net (localhost [127.0.0.1]) by fw.farid-hajji.net (Postfix) with ESMTP id 9F77340873; Thu, 22 Jan 2004 16:12:17 +0100 (CET) From: Cordula's Web To: jcm@FreeBSD-uk.eu.org In-reply-to: <20040122145353.GB54084@dogma.freebsd-uk.eu.org> (message from Jonathon McKitrick on Thu, 22 Jan 2004 14:53:53 +0000) X-Mailer: Emacs-21.3.1/FreeBSD-4.9-STABLE References: <20040122145353.GB54084@dogma.freebsd-uk.eu.org> Message-Id: <20040122151217.9F77340873@fw.farid-hajji.net> Date: Thu, 22 Jan 2004 16:12:17 +0100 (CET) cc: freebsd-questions@freebsd.org Subject: Re: remote X display X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: cpghost@cordula.ws List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jan 2004 15:13:00 -0000 > I have been looking all over for a concise howto for remote X on FreeBSD. I > see some that involve changing config files in the xdm directory, others use > xhost, and another uses xfig, which doesn't exist under FreeBSD AFAICT. Use ssh's -X flag: somehost> ssh -X user@remotemachine remotemachine> echo $DISPLAY somehost.example.com:10.0 remotemachine> xclock & Don't forget to enable X forwarding in /etc/ssh/sshd_config: X11Forwarding yes > All I want to do is use a laptop in a local network to be an X client > connected to a more powerful desktop machine. I'm not worried about > security. > > Is xhosts and the DISPLAY variable all I need? Or do I need to go through > all of the xdm configuration hoops? ssh X11 forwarding is much more secure than DISPLAY/xhosts/xdm etc..., because: 1. Your X11 server doesn't have to listen to port 6000 (You don't have to add '-listen_tcp' to startx command) 2. The communication between server and client is encrypted Of course, YMMV. > NOTE: Please CC me, as I am not currently subscribed. Thanks. > > jm > -- > My other computer is your windows box. -- Cordula's Web. http://www.cordula.ws/