From owner-freebsd-net@FreeBSD.ORG Fri Dec 12 01:26:42 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8678C16A4CE for ; Fri, 12 Dec 2003 01:26:42 -0800 (PST) Received: from mizar.origin-it.net (mizar.origin-it.net [194.8.96.234]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F92943D32 for ; Fri, 12 Dec 2003 01:26:40 -0800 (PST) (envelope-from helge.oldach@atosorigin.com) Received: from matar.hbg.de.int.atosorigin.com (dehsfw3e.origin-it.net [194.8.96.68])hBC9Qbm3012638 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 12 Dec 2003 10:26:37 +0100 (CET) (envelope-from helge.oldach@atosorigin.com) Received: from galaxy.hbg.de.ao-srv.com (galaxy.hbg.de.ao-srv.com [161.89.20.4])ESMTP id hBC9QbQ8084116; Fri, 12 Dec 2003 10:26:37 +0100 (CET) (envelope-from helge.oldach@atosorigin.com) Received: (from hmo@localhost) by galaxy.hbg.de.ao-srv.com (8.9.3p2/8.9.3/hmo30mar03) id KAA06641; Fri, 12 Dec 2003 10:26:36 +0100 (MET) Message-Id: <200312120926.KAA06641@galaxy.hbg.de.ao-srv.com> In-Reply-To: <20031212080131.GB962@cobweb.example.org> from Marco Molteni at "Dec 12, 2003 9: 1:31 am" To: molter@tin.it (Marco Molteni) Date: Fri, 12 Dec 2003 10:26:35 +0100 (MET) From: Helge Oldach X-Address: Atos Origin GmbH, Friesenstraße 13, D-20097 Hamburg, Germany X-Phone: +49 40 7886 7464, Fax: +49 40 7886 9464, Mobile: +49 160 4782517 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-net@freebsd.org Subject: Re: ssh tunnels and Xvnc - (yes, I know... What? not again!?) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Dec 2003 09:26:42 -0000 Marco Molteni: >> I have a situation that has not been fully addressed by the excellent >> documentation on getting ssh tunnels and remote X-windows display managers > >> (like VNC) running. And my feeble brain is too damaged by the dreaded >lurgy >> to make heads or tails of it. >> >> home machine (home) ---- ISP --- internet --- work firewall --- work >machine1 >> (additional firewall?) (work1) --- work machine 2 (desktop) (work2). >> >> I can ssh from home to the work1 and ssh from there to work2. >> home runs windows 2k and I have (full) admin access >> work1 and 2 run FreeBSD >> I have root access on work2 but not work 1 > >you should be able to do it in one step, no need to log into work1, >no need to run the listener... you just need your ssh public keys >in work1 and work2 Yep. >from home you double tunnel: >LOCALPORT=6333 >REMOTEPORT=5901 >ssh -t -L $LOCALPORT:localhost:12945 work1 \ > ssh -L 12945:localhost:$REMOTEPORT work2 As home is a W2k box, ssh won't probably work exactly like this... Putty supports a "don't allocate a pseudo-terminal" option to achieve the effect of ssh's "-t" option. (Required, otherwise work1 will bark.) Helge