From owner-freebsd-questions@FreeBSD.ORG Sun Apr 4 12:08:22 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 3755A16A4CE for ; Sun, 4 Apr 2004 12:08:22 -0700 (PDT) Received: from fw.farid-hajji.net (fw.farid-hajji.net [213.146.115.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id B3AD643D53 for ; Sun, 4 Apr 2004 12:08:21 -0700 (PDT) (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 B589940811; Sun, 4 Apr 2004 21:07:43 +0200 (CEST) From: Cordula's Web To: jcm@FreeBSD-uk.eu.org In-reply-to: <20040404141521.GA57803@dogma.freebsd-uk.eu.org> (message from Jonathon McKitrick on Sun, 4 Apr 2004 15:15:21 +0100) X-Mailer: Emacs-21.3.1/FreeBSD-4.9-STABLE References: <20040122145353.GB54084@dogma.freebsd-uk.eu.org> <20040404141521.GA57803@dogma.freebsd-uk.eu.org> Message-Id: <20040404190743.B589940811@fw.farid-hajji.net> Date: Sun, 4 Apr 2004 21:07:43 +0200 (CEST) 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: Sun, 04 Apr 2004 19:08:22 -0000 > : 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 > > I had this working before, but I'm having problems. My main box is missing > a monitor (on repair). Would that make a difference? Will X apps run on the > main box without a monitor and forward X to the remote client? > > Right now, I get this: > neptune:~> echo $DISPLAY > > neptune:~> If DISPLAY is not set, then ssh on your local machine and sshd on the remote box didn't establish an X11 forwarding channel. Are you sure that sshd_config is set up properly on the remote machine? Did you use -X (that's uppercase X) while invoking ssh locally? Perhaps your local ssh and remote sshd are not talking the same version of the SSH protocol? BTW, it is irrelevant if the remote box has a monitor or not. That box doesn't even need an X server (wether running or not). Only X clients and X libraries are needed on the remote machine. -- Cordula's Web. http://www.cordula.ws/