Gavin W. Burris on 30 Sep 2013 07:12:09 -0700


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

Re: [PLUG] SSH Tunnel


I heard you like SSH, so I put some SSH in your SSH.  Cheers.

Host oldsys
    user eric
    Hostname 192.168.4.4
    ProxyCommand ssh -W %h:%p intermediate
Host intermediate
    user eric
    Hostname 10.10.10.25


On Sun, Sep 29, 2013 at 02:50:06PM -0400, Eric at Lucii.org wrote:
> I need to create a ssh tunnel through an intermediate server (10.10.10.25)
> to a vm on that server (192.168.4.4)
> 
> So.... I put this in my .ssh/config file:
> 
> Host oldsys
>   Hostname 10.10.10.25
>   user eric
>   ServerAliveInterval 300
>   LocalForward 20000 192.168.4.4:22
> 
> I've set up the authorized_keys so the login at each stage should be automatic.
> 
>  = From the current machine I can ssh to 10.10.10.25
>  = From 10.10.10.25 I can ssh to 192.168.4.4
> 
> But: the tunnel appears to not work.
> When I 'ssh oldsys' from my original server I end up logged in to the 10.10.10.25 server.
> It's like I never told it to do a forward :-(
> 
> What am I missing here?
> Eric
> -- 
> #  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

-- 
Gavin W. Burris
Senior IT Project Leader
Research Computing
Wharton Computing
University of Pennsylvania
___________________________________________________________________________
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