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 1GXLp1-0000dX-PF for garchives@archives.gentoo.org; Tue, 10 Oct 2006 17:55:20 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k9AHs9kV010333; Tue, 10 Oct 2006 17:54:09 GMT Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k9AHmOve021057 for ; Tue, 10 Oct 2006 17:48:25 GMT Received: by nf-out-0910.google.com with SMTP id x30so384485nfb for ; Tue, 10 Oct 2006 10:48:24 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=H68Gt/ZNgdbAtSrtETQn7rDwEzJN5A3uNphW7KKI5Z8SDsArZib2w80/BQDSRxNaUN3f0YX0zMNz1Y0lb/iweyo2+7wc0oBFzCv+I5eU4YUCIVPSZf2B8FR7x1g9gepo0ewC2oQu3uW/AOOxlTUd9O1/CHOzBgC7Lg1aUJF3MaI= Received: by 10.82.136.4 with SMTP id j4mr800338bud; Tue, 10 Oct 2006 10:48:24 -0700 (PDT) Received: by 10.82.126.14 with HTTP; Tue, 10 Oct 2006 10:48:24 -0700 (PDT) Message-ID: <7573e9640610101048q587e5ca9s947fbdecd3f207d6@mail.gmail.com> Date: Tue, 10 Oct 2006 10:48:24 -0700 From: "Richard Fish" Sender: richard.j.fish@gmail.com To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] VNC over SSH (VNC session is non-local to SSH) In-Reply-To: <642958cc0610101033h5d37d0cfh48367ea964f2db3@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: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <642958cc0610100946x6c263c88reb8dc79a2f71cf6e@mail.gmail.com> <7573e9640610101013l751c2da7wa2fb303727fb1db@mail.gmail.com> <642958cc0610101033h5d37d0cfh48367ea964f2db3@mail.gmail.com> X-Google-Sender-Auth: 83e2d850c180974a X-Archives-Salt: c60b5f7e-b2ad-41c7-bb26-b6c5dc00451d X-Archives-Hash: 6e93bc85490255ffd37819e9367a6c86 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