From owner-freebsd-questions@FreeBSD.ORG Thu Jul 26 03:35:58 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D53516A41A for ; Thu, 26 Jul 2007 03:35:58 +0000 (UTC) (envelope-from mse_software@charter.net) Received: from mtai03.charter.net (mtai03.charter.net [209.225.8.183]) by mx1.freebsd.org (Postfix) with ESMTP id BF99913C469 for ; Thu, 26 Jul 2007 03:35:57 +0000 (UTC) (envelope-from mse_software@charter.net) Received: from aa02.charter.net ([10.20.200.154]) by mtai03.charter.net (InterMail vM.7.08.02.00 201-2186-121-20061213) with ESMTP id <20070726033552.TYOC1450.mtai03.charter.net@aa02.charter.net>; Wed, 25 Jul 2007 23:35:52 -0400 Received: from [192.168.10.101] (really [71.92.114.191]) by aa02.charter.net with ESMTP id <20070726033552.FGLK26124.aa02.charter.net@[192.168.10.101]>; Wed, 25 Jul 2007 23:35:52 -0400 From: "Michael S. Eubanks" To: freebsd-questions@freebsd.org In-Reply-To: <20070725094930.B71422@badger.tltodd.com> References: <20070724105922.A29729@badger.tltodd.com> <1185295685.2034.4.camel@yak.mseubanks.net> <20070724122340.A32857@badger.tltodd.com> <1185299662.2034.9.camel@yak.mseubanks.net> <20070724132925.A36540@badger.tltodd.com> <1185347784.8728.27.camel@yak.mseubanks.net> <20070725090135.A71422@badger.tltodd.com> <20070725094930.B71422@badger.tltodd.com> Content-Type: text/plain Date: Wed, 25 Jul 2007 20:35:48 -0700 Message-Id: <1185420948.1603.14.camel@yak.mseubanks.net> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Chzlrs: 0 Cc: Terry Todd Subject: Re: ssh X11 forwarding not working on FreeBSD 6.2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mse_software@charter.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jul 2007 03:35:58 -0000 On Wed, 2007-07-25 at 09:49 -0500, Terry Todd wrote: > I made a mistake in my last post. > > SSH X11 forwarding sets the DISPLAY variable to something like: > localhost:10.0 > > It should not be the address of the Windows box because that bypasses > X11 forwarding. > > Terry Todd > > > On Wed, Jul 25, 2007 at 09:01:35AM -0500, Terry Todd wrote: > > > > Michael, > > > > Thanks for the directions. Using your method does work. However > > your method bypasses X11 forwarding. > > > > > 6. Log into the FreeBSD machine using PuTTY. Set the DISPLAY > > > environment variable equal to the IP address and display of the XP > > > machine. The command I used was: > > > > > > export DISPLAY=192.168.xxx.xxx:0 > > > > What I want to get working is X11 forwarding where you don't set > > the DISPLAY variable explicitly. With X11 forwarding the DISPLAY > > variable is automatically set to something like, > > [IP address of Windows box]:0.0. > > > > Terry Todd > > > > > > On Wed, Jul 25, 2007 at 12:16:24AM -0700, Michael S. Eubanks wrote: > > > On Tue, 2007-07-24 at 13:29 -0500, Terry Todd wrote: > > > > On Tue, Jul 24, 2007 at 10:54:22AM -0700, Michael S. Eubanks wrote: > > > > ... > > > > > Question. How many X servers do you have running? Are you logged into > > > > > a window manager when you are attempting to connect? > > > > > > > > > > > > > Only one instance of Xming is running on the Windows XP system. > > > > I am using PuTTY to connect to the FreeBSD system and the other > > > > systems. The other systems all work. FreeBSD X11 forwarding does > > > > not work. It is an off the shelf standard install of 6.2. > > > > > > > > Manually setting the DISPLAY variable on the FreeBSD system to > > > > [IP address of Widows XP system]:0.0 will allow it to work but > > > > that's not what I want to do here. I want it to automatically > > > > forward the X11 session through ssh like it does when connecting > > > > to the FC6 system. > > > > > > > > Terry Todd > > > > > > > > > > Okay. I was able to get it running. I received a slightly different > > > error when I tried running an application the first time. My error is > > > from Xming and displays as follows (using X forwarding): > > > > > > AUDIT: Tue Jul 24 23:47:34 2007: 608 C:\Program Files\Xming\xming.exe > > > client 4 rejected from IP 192.168.10.101 > > > > > > This error simply means to add the ``-ac'' option to the Xming desktop > > > shortcut. Let me walk you through what I did. Before I begin, I'm > > > using 6-STABLE (now on 6.2) with Xorg 7.2. > > > > > > > > > QUICK INSTRUCTIONS > > > 1. Make sure to install Xming using both the Xming installer program > > > and Xming fonts installer. > > > > > > 2. Modify the Desktop Xming shortcut to include the following > > > arguments: ``:0 -clipboard -multiwindow -ac''. The ac option accepts > > > client requests and quells the error that I had above. > > > > > > 3. Start Xming using the shortcut you just created > > > > > > 4. I'm going to guess that you may leave your sshd_config file the way > > > it is - I did. > > > > > > 5. Install the Xming Portable PuTTY package. Make the changes shown to > > > the PuTTY configuration as shown here before you connect to the FreeBSD > > > machine (NOTE the X11 forwarding to localhost:0 - I think this is how > > > you said your config was): > > > > > > http://www.straightrunning.com/XmingNotes/trouble.php > > > > > > 6. Log into the FreeBSD machine using PuTTY. Set the DISPLAY > > > environment variable equal to the IP address and display of the XP > > > machine. The command I used was: > > > > > > export DISPLAY=192.168.xxx.xxx:0 > > > > > > 7. Make sure your Windows Firewall is either turned off or allows > > > incoming requests for Xming. > > > > > > 8. Execute a command like xeyes. It should show on the windows > > > desktop. > > > > > <...snip...> Glad to hear you got it working - you are right though. Here's a quick link. http://www.ssh.com/support/documentation/online/ssh/adminguide/32/X11_Forwarding.html Considerring the client uses a special local display setting, would it work to set the environment variables in PuTTY itself, although, that would seem to be manual again. With respect to X, check out the xauth man page. I'm curious as to whether the xauth file needs to exist in the user's home directory. I think the instructions (pictures) showed a key being added to the PuTTY session config. Cheers, Michael S. Eubanks mse_software@charter.net