From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jonathan Williams Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: SSH X11 question Date: Thu, 19 Jun 2003 17:57:45 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <00d801c336ad$d1789a90$8315000a@shubertorg.com> References: <007c01c33678$e2177770$8315000a@shubertorg.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1056060110 8019 80.91.224.249 (19 Jun 2003 22:01:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 19 Jun 2003 22:01:50 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Fri Jun 20 00:01:49 2003 Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19T7SX-00021f-00 for ; Fri, 20 Jun 2003 00:00:45 +0200 Original-Received: (qmail 26099 invoked by uid 5); 19 Jun 2003 22:00:44 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 26090 invoked by uid 49493); 19 Jun 2003 22:00:44 -0000 Original-Received: from jonathw@shubertorg.com by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-3.8/5.0):. Processed in 0.450897 secs); 19 Jun 2003 22:00:44 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 19 Jun 2003 22:00:43 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HGR00363156QN@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 19 Jun 2003 18:00:42 -0400 (EDT) Original-Received: from mailhost.Shubertorg.com (mailhost.shubertorg.com [207.246.208.40]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HGR00KNG14YU2@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 19 Jun 2003 18:00:35 -0400 (EDT) Original-Received: from memnoch [207.238.217.205] by mailhost.Shubertorg.com (SMTPD32-7.15) id A33F78B30122; Thu, 19 Jun 2003 18:03:43 -0400 Original-To: tru64-unix-managers@ornl.gov X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-Priority: 3 X-MSMail-priority: Normal X-Declude-Sender: jonathw@shubertorg.com [207.238.217.205] X-Declude-Spoolname: D333f78b30122cfc8.SMD X-Note: This E-mail was scanned by The Shubert Organization, Inc. for spam. Xref: main.gmane.org gmane.os.tru64.managers:4607 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4607 Bah! I hate summaries like this one. chalk this one up to user error. =( There were two problems that I overlooked. One was pointed out by Trevor Osatchuk. He said: "Before you ssh into the other system make sure that your DISPLAY variable is set correctly. If this isn't right then the other system will have the same erroneous or null value." Sure enough...I was using a user that I had "su"-ed to--so the DISPLAY variable wasn't set. If I ssh over from a fresh login, the DISPLAY is set correctly, and X11 apps run fine. The other problem was that when I tried it using the SSH Secure Shell windows program, I forgot to put a little checkmark next to the "Tunnel X11 connections?" box. Checked it, and now that works too. Thanks for everyone that responded. Almost all the responses suggested modifying the /etc/hosts.allow file, and adding a line something like this: sshdfwd-X11: .domain.xxx :ALLOW I put this in, because maybe it will help others with similar problems. I don't use the hosts.deny file, so the hosts.allow file is unnecessary. From the SSH admin guide: "If /etc/hosts.allow does not contain a rule allowing access, tcpd reads /etc/hosts.deny for a rule that would deny access. If neither of the files contains an accept or deny rule, access is granted by default." So that's that. Thanks again for the responses. Jonathan Williams Unix Systems Administrator The Shubert Organization, Inc. ----- Original Message ----- From: "Jonathan Williams" To: Sent: Thursday, June 19, 2003 11:38 AM Subject: SSH X11 question > We just got a brand new Alphaserver ES80 (running Tru64 5.1b), and I'm busily > trying to configure it as a production machine. One of the things that needs > configuring is SSH. > > We have two other machines running SSH and 5.1b, and if I were to ssh2 from one > to the other, my DISPLAY variable would automatically be set for me (if I ssh2 > from systemA to systemB, my DISPLAY will be set to something like > "systemB.shubertorg.com:10.0". And all of the X11 applications work just fine. > > With this new system, I noticed that the DISPLAY variable is blank when I ssh2 > from the other systems to this system, or even from this system to the other > systems (causing a "cannot open display" error when starting X11 apps). It's > like something is missing. I don't recall having to do anything special to the > other systems to get this to work properly. I compared the ssh2_config and > sshd2_config files (with a working system), and they seem to be identical > (including the FORWARDX11 option set to "yes"). > > One thing I noticed is that this new system seems to be running 5.1b patchkit 2, > while the others are running patchkit1--I'm not sure if that means anything > though. > > Any suggestions are greatly appreciated. > > Jonathan Williams > Unix Systems Administrator > The Shubert Organization, Inc. > > > >