From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GXM1i-0001S9-LD for garchives@archives.gentoo.org; Tue, 10 Oct 2006 18:08:27 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k9AI56x8021359; Tue, 10 Oct 2006 18:05:06 GMT Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.202]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k9AHwD4K003552 for ; Tue, 10 Oct 2006 17:58:14 GMT Received: by nz-out-0102.google.com with SMTP id z31so488084nzd for ; Tue, 10 Oct 2006 10:58:13 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=j5wmdF/zb1W80wO0Im3tdSXxN2IaFS5NErlM05gPbS6G3GPkYSgF3uxrCURNm7it7CPlYPQ/RGv7dVylrTfQFl48HO/lAcm7Dm2vNgAzLjYKkAf4CrOAVvJ2zD6snR9s52kURA3HxCgLBQJz6l9Uv/k4s56HdQcxtYtGHBD6/LE= Received: by 10.65.232.18 with SMTP id j18mr12133939qbr; Tue, 10 Oct 2006 10:58:13 -0700 (PDT) Received: by 10.65.218.13 with HTTP; Tue, 10 Oct 2006 10:58:13 -0700 (PDT) Message-ID: <642958cc0610101058y70fb1b43m2bb70220a1d00b2@mail.gmail.com> Date: Tue, 10 Oct 2006 13:58:13 -0400 From: "Mark Shields" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] VNC over SSH (VNC session is non-local to SSH) In-Reply-To: <7573e9640610101048q587e5ca9s947fbdecd3f207d6@mail.gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11897_20720621.1160503093347" References: <642958cc0610100946x6c263c88reb8dc79a2f71cf6e@mail.gmail.com> <7573e9640610101013l751c2da7wa2fb303727fb1db@mail.gmail.com> <642958cc0610101033h5d37d0cfh48367ea964f2db3@mail.gmail.com> <7573e9640610101048q587e5ca9s947fbdecd3f207d6@mail.gmail.com> X-Archives-Salt: df187343-2628-4912-b5be-b2fb919dbb62 X-Archives-Hash: 0d9175f4ed5e08c53dcac81520d6eaf1 ------=_Part_11897_20720621.1160503093347 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 10/10/06, Richard Fish wrote: > > On 10/10/06, Mark Shields wrote: > > Thank you Richard and Mauro, but this wasn't what I was looking > for. The > > vnc and the ssh server are not the same. > > ssh port forwarding is not limited to just the machine you are logging > into. It will forward the connection to another host. So I think > this is still what you want: > > # ssh -L localhost:5901:vnchost:5901 routerhost > > This will cause the ssh client to forward any connections to 5901 on > localhost to be forwarded to the server on routerhost, which will then > make the connection to vnchost port 5901. No need to muck with > iptables rules at all here. > > -Richard > -- > gentoo-user@gentoo.org mailing list > > Ok, how can I do that with putty? -- - Mark Shields ------=_Part_11897_20720621.1160503093347 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 10/10/06, Richard Fish <bigfish@asmallpond.org> wrote:
On 10/10/06, Mark Shields <laebshade@gmail.com> wrote:
> Thank you Richard and Mauro, but this wasn't what I was looking for.  The
> vnc and the ssh server are not the same.

ssh port forwarding is not limited to just the machine you are logging
into.  It will forward the connection to another host.  So I think
this is still what you want:

# ssh -L localhost:5901:vnchost:5901 routerhost

This will cause the ssh client to forward any connections to 5901 on
localhost to be forwarded to the server on routerhost, which will then
make the connection to vnchost port 5901.  No need to muck with
iptables rules at all here.

-Richard
--
gentoo-user@gentoo.org mailing list


Ok, how can I do that with putty?

--
- Mark Shields ------=_Part_11897_20720621.1160503093347-- -- gentoo-user@gentoo.org mailing list