Edward Pike on 9 Aug 2010 00:06:31 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] "ssh -X" through multiple hops

  • From: Edward Pike <jondzpike@gmail.com>
  • To: "Philadelphia Linux User's Group Discussion List" <plug@lists.phillylinux.org>
  • Subject: Re: [PLUG] "ssh -X" through multiple hops
  • Date: Mon, 9 Aug 2010 03:06:25 -0400
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=FgP9L4H3JD/EO/+Sp7kSPOy6GVDwUIbrKduZbOW8zB0=; b=rdJFU4QInqaYv/DZy8YEW+lS2kps7mZrZwZZlCWiUOHfH6RE6ZusTSSrhqPk0dab1E wcVwv+RUPEVBpkFNY3riYV03V9kpYjunBk/FVN79VORL+0kuE1NBWRQJMPeuIoA5ndZi p25tMSvb4H9Q7F4DQhmakExNvooa1N2zWhpe8=
  • Reply-to: Philadelphia Linux User's Group Discussion List <plug@lists.phillylinux.org>
  • Sender: plug-bounces@lists.phillylinux.org

Tr

On Mon, Aug 9, 2010 at 2:32 AM, Brian Stempin <brian.stempin@gmail.com> wrote:
You can use ssh port forwarding to forward a port on your local computer to your ssh port on the box inside of your firewall.

Example:
me@somewhere >ssh -L 8080:boxinsidehome:22 me@firewall

This forwards port 8080 on your local machine through your firewall to port 22 on 'boxinsidehome'.  From there, you can:
me@somewhere >ssh -X me2@localhost -p 8080

This last line initiates an SSH connection directly with 'boxinsidehome' over the SSH tunnel that we established from the first example. You could throw in any other SSH options that you might normally use, such as compression, etc etc.

HTH,
Brian

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug


___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug