ssh tunnel to a computer and create another tunnel a third server

I need to do some work on a server to which I don't have direct access to. I do have access to my company network (via vpn). If I were on that network, I could access the server directly. But, for some reason when I'm on the vpn, I can't access the server directly.

So, I need to ssh into an intermediary ubuntu box, and then create an ssh tunnel from that box to the server.

Then, I can do my work on my laptop and send it through a local tunnel that points to a foreign tunnel (on my ubuntu box) that goes to the server.

But I don't know how to do a tunnel that creates another tunnel to a third server.

Any ideas?

Thanks, Scott



Read more here: https://stackoverflow.com/questions/3746246/ssh-tunnel-to-a-computer-and-create-another-tunnel-a-third-server

Content Attribution

This content was originally published by Scott at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: