From owner-freebsd-questions@FreeBSD.ORG Tue Jul 24 16:48:12 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 4697D16A418 for ; Tue, 24 Jul 2007 16:48:12 +0000 (UTC) (envelope-from mse_software@charter.net) Received: from mtai02.charter.net (mtai02.charter.net [209.225.8.182]) by mx1.freebsd.org (Postfix) with ESMTP id F34E313C45B for ; Tue, 24 Jul 2007 16:48:11 +0000 (UTC) (envelope-from mse_software@charter.net) Received: from aa02.charter.net ([10.20.200.154]) by mtai02.charter.net (InterMail vM.7.08.02.00 201-2186-121-20061213) with ESMTP id <20070724164807.MMDB2093.mtai02.charter.net@aa02.charter.net>; Tue, 24 Jul 2007 12:48:07 -0400 Received: from [192.168.10.101] (really [71.92.114.191]) by aa02.charter.net with ESMTP id <20070724164806.UKLC26124.aa02.charter.net@[192.168.10.101]>; Tue, 24 Jul 2007 12:48:06 -0400 From: "Michael S. Eubanks" To: freebsd-questions@freebsd.org In-Reply-To: <20070724105922.A29729@badger.tltodd.com> References: <20070724105922.A29729@badger.tltodd.com> Content-Type: text/plain Date: Tue, 24 Jul 2007 09:48:05 -0700 Message-Id: <1185295685.2034.4.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: Tue, 24 Jul 2007 16:48:12 -0000 On Tue, 2007-07-24 at 10:59 -0500, Terry Todd wrote: > I have installed Xming successfully on a Windows XP system. > It works OK to a FC6 system and an older UNIXware system. > > However when trying to connect to a FreeBSD 6.2 system with PuTTY > ssh it doesn't work. PuTTY has Enable X11 forwarding checked. > > Here's what I get: > > $ > $ xhost > Xlib: connection to "localhost:10.0" refused by server > Xlib: PuTTY X11 proxy: wrong authentication protocol attempted > xhost: unable to open display "localhost:10.0" > $ > > What can be wrong? > > I have ssh configured as follows: > # grep X11 /etc/ssh/* > /etc/ssh/ssh_config:ForwardX11 yes > /etc/ssh/ssh_config:ForwardX11Trusted yes > /etc/ssh/sshd_config:X11Forwarding yes > /etc/ssh/sshd_config:X11DisplayOffset 10 > /etc/ssh/sshd_config:X11UseLocalhost yes > Start by changing the following line from X11DisplayOffset 10 to X11DisplayOffset 1 According to the sshd_conf man page, looks like the number should be set to the display that you want to forward (the first available display). > Here is the Xming log file: > Welcome to the Xming X Server > Vendor: Colin Harrison > Release: 6.9.0.24 > FreeType2: 2.3.0 > Contact: http://sourceforge.net/forum/?group_id=156984 > > C:\Program Files\Xming\Xming.exe :0 -ac -clipboard -multiwindow > > XdmcpRegisterConnection: newAddress x.x.x.x > winPrefsLoadPreferences: C:\Program Files\Xming\Xmingrc > LoadPreferences: Done parsing the configuration file... > winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits per pixel > winAllocateFBShadowGDI - Creating DIB with width: 1600 height: 1200 depth: 32 > winInitVisualsShadowGDI - Masks 00ff0000 0000ff00 000000ff BPRGB 8 d 24 bpp 32 > glWinInitVisuals:1511: glWinInitVisuals > init_visuals:1055: init_visuals > null screen fn ReparentWindow > null screen fn RestackWindow > InitQueue - Calling pthread_mutex_init > InitQueue - pthread_mutex_init returned > InitQueue - Calling pthread_cond_init > InitQueue - pthread_cond_init returned > winInitMultiWindowWM - Hello > winInitMultiWindowWM - Calling pthread_mutex_lock () > winMultiWindowXMsgProc - Hello > winMultiWindowXMsgProc - Calling pthread_mutex_lock () > glWinScreenProbe:1390: glWinScreenProbe > fixup_visuals:1303: fixup_visuals > init_screen_visuals:1336: init_screen_visuals > (--) 5 mouse buttons found > (--) Setting autorepeat to delay=500, rate=31 > (--) winConfigKeyboard - Layout: "00000409" (00000409) > (--) Using preset keyboard for "English (USA)" (409), type "4" > Could not init font path element C:\Program Files\Xming/fonts/misc/, removing from list! > Could not init font path element C:\Program Files\Xming/fonts/TTF/, removing from list! > Could not init font path element C:\Program Files\Xming/fonts/Type1/, removing from list! > Could not init font path element C:\Program Files\Xming/fonts/75dpi/, removing from list! > Could not init font path element C:\Program Files\Xming/fonts/100dpi/, removing from list! > Could not init font path element C:\Program Files\Xming\fonts\dejavu, removing from list! > Could not init font path element C:\Program Files\Xming\fonts\cyrillic, removing from list! > Could not init font path element C:\WINDOWS\Fonts, removing from list! > winInitMultiWindowWM - pthread_mutex_lock () returned. > winInitMultiWindowWM - pthread_mutex_unlock () returned. > winMultiWindowXMsgProc - pthread_mutex_lock () returned. > winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0 > winMultiWindowXMsgProc - pthread_mutex_unlock () returned. > winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0 > winProcEstablishConnection - Hello > winInitClipboard () > winProcEstablishConnection - winInitClipboard returned. > winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the display. > winClipboardProc - Hello > DetectUnicodeSupport - Windows XP > winClipboardProc - DISPLAY=127.0.0.1:0.0 > winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened the display. > winClipboardProc - XOpenDisplay () returned and successfully opened the display. > > > Here is the PuTTY event log: > 2007-07-24 09:53:57 Looking up host "x.x.x.x" > 2007-07-24 09:53:57 Connecting to x.x.x.x port 22 > 2007-07-24 09:53:57 Server version: SSH-2.0-OpenSSH_4.5p1 FreeBSD-20061110 > 2007-07-24 09:53:57 We claim version: SSH-2.0-PuTTY_Snapshot_2005_05_03:r5737 > 2007-07-24 09:53:57 Using SSH protocol version 2 > 2007-07-24 09:53:57 Doing Diffie-Hellman group exchange > 2007-07-24 09:53:57 Doing Diffie-Hellman key exchange > 2007-07-24 09:53:57 Host key fingerprint is: > 2007-07-24 09:53:57 ssh-dss 1024 06:2a:c4:9c:e7:6a:f8:0d:5a:17:e9:b0:e3:79:1c:a5 > 2007-07-24 09:53:57 Initialised AES-256 SDCTR client->server encryption > 2007-07-24 09:53:57 Initialised HMAC-SHA1 client->server MAC algorithm > 2007-07-24 09:53:57 Initialised AES-256 SDCTR server->client encryption > 2007-07-24 09:53:57 Initialised HMAC-SHA1 server->client MAC algorithm > 2007-07-24 09:54:06 Access granted > 2007-07-24 09:54:06 Opened channel for session > 2007-07-24 09:54:06 Requesting X11 forwarding > 2007-07-24 09:54:06 X11 forwarding enabled > 2007-07-24 09:54:06 Allocated pty (ospeed 38400bps, ispeed 38400bps) > 2007-07-24 09:54:06 Started a shell/command > 2007-07-24 09:54:17 Received X11 connect request from 127.0.0.1:53737 > 2007-07-24 09:54:17 Opening X11 forward connection succeeded > 2007-07-24 09:54:17 Forwarded X11 connection terminated > -Michael S. Eubanks mse_software@charter.net