From owner-freebsd-net@FreeBSD.ORG Fri Dec 12 02:01:34 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 A938316A4CE for ; Fri, 12 Dec 2003 02:01:34 -0800 (PST) Received: from apollo.laserfence.net (apollo.laserfence.net [196.44.69.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE5FD43D32 for ; Fri, 12 Dec 2003 02:01:31 -0800 (PST) (envelope-from will@unfoldings.net) Received: from [127.0.0.1] (helo=localhost) by apollo.laserfence.net with esmtp (Exim 4.24; FreeBSD) id 1AUk6p-000Bgd-HT; Fri, 12 Dec 2003 12:01:19 +0200 Received: from apollo.laserfence.net ([127.0.0.1]) by localhost (apollo.laserfence.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 40384-10; Fri, 12 Dec 2003 12:01:01 +0200 (SAST) Received: from [192.168.255.1] (helo=prometheus.home.laserfence.net) by apollo.laserfence.net with esmtp (Exim 4.24; FreeBSD) id 1AUk6V-000BgN-Rz; Fri, 12 Dec 2003 12:01:01 +0200 Received: from arista.home.laserfence.net ([192.168.0.10] helo=arista) by prometheus.home.laserfence.net with smtp (Exim 4.10) id 1AUk6K-0005ie-00; Fri, 12 Dec 2003 12:00:48 +0200 Message-ID: <002e01c3c096$f5e57970$0a00a8c0@arista> From: "Willie Viljoen" To: "Marco Molteni" , "Helge Oldach" References: <200312120926.KAA06641@galaxy.hbg.de.ao-srv.com> Date: Fri, 12 Dec 2003 12:01:49 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Virus-Scanned: by amavisd-new at laserfence.net 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 10:01:34 -0000 ----- Original Message ----- From: "Helge Oldach" To: "Marco Molteni" Cc: Sent: Friday, December 12, 2003 11:26 AM Subject: Re: ssh tunnels and Xvnc - (yes, I know... What? not again!?) > Marco Molteni: > >> 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.) PuTTY is problematic though. There is a way to get it to work exactly like this. A Windows NT/2000/XP/2003 port of OpenSSH with an installer is at http://lexa.mckenna.edu/ The port installs a small subset of Cygwin and uses it to provide full OpenSSH functionality, so you can get SSH as it is on UNIX from the Windows command prompt. Will