[SOLVED] How can I overcome a firewall by ssh tunneling?
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Let me explain. Using a laptop, I can access a remote cluster user@xxx.xx.xx.xx from anywhere. Once I have accessed this cluster, I can access another one using another_user@yyy.yy.yy.yy. But I cannot directly access the second cluster from my laptop, because it has a firewall that blocks non registered IP's. So, how can I overcome the firewall by ssh tunneling? I googled it, but I did not find a solution.
As voleg mentioned is still a 2 step process. What you want I do not believe is doable without using 2 steps, unless the firewall permissions are changed. Seeing it is a cluster, there might be data worth protecting, so two step offer better security.
My personal setup is vpn onto lan and then ssh with private keys that are password protected into systems. Really does not take that much longer to do.
I could not apply voleg solution because the firewall did not allow me, as ericson007 said. druuna's solution worked fine, however I need something more.
I need to transfer data between my laptop and 'target.machine.com' using rsync or scp. Since I do not know how to do that directly, I have to transfer data to 'stepping.stone.com' and then to 'target.machine.com'. I have to do that many times a day, which is boring and time wasting. Does anyone know how to overcome this problem? Something like druuna's solution will be very appreciated.
Thanks for your attention!
---------- Post added 11-14-13 at 01:24 PM ----------
I could not apply voleg solution because the firewall did not allow me, as ericson007 said. druuna's solution worked fine, however I need something more.
I need to transfer data between my laptop and 'target.machine.com' using rsync or scp. Since I do not know how to do that directly, I have to transfer data to 'stepping.stone.com' and then to 'target.machine.com'. I have to do that many times a day, which is boring and time wasting. Does anyone know how to overcome this problem? Something like druuna's solution will be very appreciated.
I need to transfer data between my laptop and 'target.machine.com' using rsync or scp. Since I do not know how to do that directly, I have to transfer data to 'stepping.stone.com' and then to 'target.machine.com'. I have to do that many times a day, which is boring and time wasting. Does anyone know how to overcome this problem?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.