So here is my situation. I want to work at home. Or on the road or from anywhere except school. But the problem is that i have about 3 different lab machines at school that I have to do work on. But not only are they at school, they are also not accessible to the outside world. The only way to connect to them is through gateway machine. So i could first ssh to the gateway and then from there ssh to the server that I need to connect to. That works reasonably well, but it is a pain, and what if i need to copy files? This is where ssh tunneling comes in handy. What tunneling does is it first creates a connection to a host/gateway - this is the tunnel. Now what you can do is make another connection through that first tunnel connection to some other host. It’s just like tunneling under a castle wall. This comes in handy for my situation where I need to pass traffic through a gateway. But another very powerful use is as an all-purpose tool for encrypting otherwise unsecure network protocols (e-mail, ftp, web traffic, etc.). Remember that all traffic through an ssh connection is encrypted. this includes tunnels. My main use for tunnels however is for bypassing gateways, so let’s see how it’s done. ShareThis
ssh is far more powerful than most people who use it on a regular basis realize and it really should be a staple in the diet of any serious software/web developer. I will cover it’s basic usage and then go over some more advanced examples that I have been using for my current work. If you are already familiar with ssh and just want to learn about ssh tunnels, read the next post in the series about SSH Tunnels Before going on, I must mention that as far as I know none of this will work in windows. Also, for any of it to work you must have an ssh client installed on your computer (you probably do, but if you dont then check out openssh.org.) Also, the host you are trying to connect to must have an ssh server running and you must have permission to use it. ShareThis
|
CategoriesBlogroll |
|||||||