|
Manohar Kuse
Student LNMIIT, Jaipur Happiness does not consist in pastimes and amusements but in virtuous activities. |
|||||||
|
| ||||||||
SSH Port Forwarding
AbstractThis is a mini write-up which explains about SSH Port forwarding. I used to use this quite often to get access to faculty internet when I was an under-graduate student at LNM IIT. I find this hassle free port forwarding facility provided by SSH preety useful. This document here contains the details about the usage of it.
I sincerely hope, that this tutorial explains the SSH port forwarding upto your expectation. Feel free to contact me, to tell me you valuable comments about this article. You can find my email ID in contact-me section of this website.
IntroductionSSH port forwarding (also refered as SSH tunneling), is a way to forward insecure TCP traffic through SSH. POP3, SMTP, HTTP connections can be forwarded with SSH. There are two kinds of port forwarding: local and remote forwarding. They are also called outgoing and incoming tunnels, respectively. Local port forwarding forwards traffic coming to a local port to a specified remote port. For example, all traffic coming to port 1234 on the client could be forwarded to port 23 on the server (host).
Hands on Port ForwardingNote that, I desire to forward proxy2.lnmiit.ac.in:3128 (Port 3128 is proxy-server port) as port 9898 on users.lnmiit.ac.in . So that, I can access proxy2.lnmiit.ac.in:3128 as users.lnmiit.ac.in:9898 To do such a thing, please note that I need SSH access only on users.lnmiit.ac.in and SSH access on proxy2.lnmiit.ac.in is not required. Execute the following command on users.lnmiit.ac.in.
kuse@users.lnmiit.ac.in $ ssh -N -g -f -L 9898:proxy2.lnmiit.ac.in:3128 kuse@127.0.0.1
Let me explain the above command to you.
Advanced use of Port Forwarding in General
| ||||||||