From owner-freebsd-questions@FreeBSD.ORG Tue Aug 19 15:36:01 2008 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 85B4F106564A for ; Tue, 19 Aug 2008 15:36:01 +0000 (UTC) (envelope-from roberto.nunnari@supsi.ch) Received: from ti-edu.ch (posta.ti-edu.ch [195.176.176.171]) by mx1.freebsd.org (Postfix) with ESMTP id 246708FC1A for ; Tue, 19 Aug 2008 15:36:00 +0000 (UTC) (envelope-from roberto.nunnari@supsi.ch) X-Virus-Scanned: by cgpav Received: from [193.5.152.27] (HELO [127.0.0.1]) by ti-edu.ch (CommuniGate Pro SMTP 5.2.5) with ESMTP id 27624646 for freebsd-questions@freebsd.org; Tue, 19 Aug 2008 16:35:55 +0200 Message-ID: <48AADA2A.10803@supsi.ch> Date: Tue, 19 Aug 2008 16:35:22 +0200 From: Roberto Nunnari User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: X11 tunnel over ssh and then rsh 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: Tue, 19 Aug 2008 15:36:01 -0000 Hello list. I have this scenario 1) host A with X server 2) host B with ssh server but without X server 3) host C with rsh server and X client programs but without X server (on host C there's also an ssh server, but in our case, users have to use rsh) now, I need to connect from host A to host B with: A$ ssh -Y B (-Y or -X, to create a X tunnel) and then from host B to host C with: B$ rsh C and on host C I need to run an X client like: C$ xterm Now, I would like the users not to have to set the DISPLAY env var on host C, as they tend to forget and also some user's X server don't accept plain X connections.. Is there a way that I could configure host B to somehow expose to host C the X tunnel to host A? From host B I have access to the users' homes on host C and I could place there some script to set the DISPLAY env var on user login. B$ echo $DISPLAY on host B gives back something like localhost:16.0, but if on host C I enter: C$ export DISPLAY=B:16.0 C$ xterm it doesn't work.. probably host C doesn't expose a network socket but maybe a unix socket for the X tunnel.. Any help/hint greatly appreciated. Best regards. Robi