Austin Murphy on 30 Sep 2013 07:04:25 -0700


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

Re: [PLUG] SSH Tunnel


On Sun, Sep 29, 2013 at 3:02 PM, Mike Joseph <mj@doze.net> wrote:
One option that's slightly smoother is actually to use a ProxyCommand and chained ssh processes:


There is an even simpler ProxyCommand that does not require nc to be installed.  From the ssh man page:

        -W host:port
             Requests that standard input and output on the client be forwarded to host on port over the secure channel.
             Implies -N, -T, ExitOnForwardFailure and ClearAllForwardings.  Works with Protocol version 2 only.



Host oldsys
  User eric
  ProxyCommand  ssh -W  10.10.10.25:22  192.168.4.4


I use it frequently.  It's easy to forget that you are jumping through hoops.

Austin

___________________________________________________________________________
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