Eric at Lucii.org on 30 Sep 2013 07:44:29 -0700


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

Re: [PLUG] SSH Tunnel


Fortunately for me nc was installed so Mike's version worked perfectly.
I will, however make a note of the -W option as I think it's cleaner.

Thanks,
Eric


On 09/30/2013 10:04 AM, Austin Murphy wrote:
> On Sun, Sep 29, 2013 at 3:02 PM, Mike Joseph <mj@doze.net <mailto: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 <http://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
> 

-- 
#  Eric Lucas
#
#                "Oh, I have slipped the surly bond of earth
#                 And danced the skies on laughter-silvered wings...
#                                        -- John Gillespie Magee Jr
___________________________________________________________________________
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