From owner-freebsd-questions@FreeBSD.ORG Sat Apr 17 19:57:22 2010 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 48C231065688 for ; Sat, 17 Apr 2010 19:57:22 +0000 (UTC) (envelope-from birdfund@yahoo.com) Received: from web57204.mail.re3.yahoo.com (web57204.mail.re3.yahoo.com [216.252.111.220]) by mx1.freebsd.org (Postfix) with SMTP id E9EAE8FC12 for ; Sat, 17 Apr 2010 19:57:21 +0000 (UTC) Received: (qmail 48491 invoked by uid 60001); 17 Apr 2010 19:30:39 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1271532639; bh=dIzEOVU9VUW81Y3QP4rD2RxiFxUcJyyOIdi0p6shP78=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=59/QnzayhsYrkMWnKU0b2bDONB3xsGkRv7UlVxUvI8O0zR/Ts20h1kI/d+qAJaM4IPsTf8+CpSCrppCBhv5wO5y+EJ2gCLGF72N6W0n3Tq6iji5Z8jiarcmVEb6TEJS8SY2lPqbnYcGRplfPm74HEizoWNX7GI0ishW1f+IEoV8= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=wyf14Bi8TPWJS0inGrNE0sr7dP9n2fuND5RqIOMYU2xDcDyl2jbVhZ/RBI8JkBgtst/GRvwHcd+HF00B5c1tS4Qmh1fm8kd5iQcuxqh3Mf9GDHX7xR45AV3fRjqjg8VBgq+t7nCyU2LcLD+m3igNutlvgXEioQc0cVN9w+Uzl5c=; Message-ID: <884908.48480.qm@web57204.mail.re3.yahoo.com> X-YMail-OSG: 4Hj0v14VM1lr7rzluVtAgMUX7ZEfg7bAI4.KMP0oMt6D3Ns H3NVuo1XIMEwSwsntMrNmDd4ZEFBoAfpNr_WehPy1CzV7U86NsLaBJpja.j9 q6lWdk939K6n8SNgJeSJzrF4CPA80mzFuPYzpBHCjhRVEzWCf9pn_FRX7J.I 3IzRTGeTF27EUxZC_hKutjX0M_eNEO6j4E_vFxcCwWj6wPIszqCDS8ClTFzQ C9d4rPsEweP1oVWvEEr4dEnblpdDcPQxPB7jdpi5T7rfVkfSygpykYRPqpxQ cm7fAgvyM6iRksFP2zrSQTroteQ-- Received: from [65.19.76.83] by web57204.mail.re3.yahoo.com via HTTP; Sat, 17 Apr 2010 12:30:39 PDT X-Mailer: YahooMailClassic/10.1.9 YahooMailWebService/0.8.100.260964 Date: Sat, 17 Apr 2010 12:30:39 -0700 (PDT) From: Mike Miskulin To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: odd ssh/X11 forward behavior X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Apr 2010 19:57:22 -0000 Appreciate any insight, I'm stumped. Situation is as below: host#1: freebsd host#2: linux I would like to run X apps on host #2 so they are displayed on host #1. I've set up as best I can tell the appropriate options in ssh_/sshd_config files to do this. Procedure: in an open xterm window on host #1. issue ssh -Y -l username host#2 After connection, $DISPLAY is host#2:10.0 attempt to run an X program such as xcalc. Get 'unable to open display' as well as an authentication error. spend a while mucking about to no avail. at some point, connect again to host #2 via a second xterm window which was open. run xcalc. magically, xcalc displays on host #1 happy days! notice that I still have open another connection in first xterm to host #2. try to exit, hangs at logout message. remains thus until I close the xcalc window and then it completes logout. try to run xcalc again in the 2nd session. failure. same error messages as before. open another session again to host #2. run xcalc. magic, it displays. go back to the other session, try to run xclock. magic, it displays. So... I have no clue here. If I have *two* open ssh sessions to host #2 (both with X forwarding) I can run applications which display on host #1 and in fact can run any application from either session at same time. However, if there is only *one* session open, nothing works and I get the various error messages related to opening the display and authentication. Where have I gone wrong? Thanks for your help.