SSH Port Forwarding Example PDF
SSH Port Forwarding Example PDF
Local forwarding allows the client to set up a “hijacker” process. This will intercept selected application-
level traffic and redirect it from an unsecured TCP connection to a secure SSH tunnel. SSH is configured
to listen on selected ports.
SSH grabs all traffic using a selected port and sends it through an SSH tunnel. On the other end, the SSH
server sends the incoming traffic to the destination port dictated by the client application.
The following example should help clarify local forwarding. Suppose you have an e-mail client on your
desktop and use it to get e-mail from your mail server via the Post Office Protocol (POP).The assigned
port number for POP3 is port 110.
With remote forwarding, the user’s SSH client acts on the server’s behalf.
The client receives traffic with a given destination port number, places the traffic on the correct port and
sends it to the destination the user chooses. A typical example of remote forwarding is the following.
You wish to access a server at work from your home computer. Because the work server is behind a
firewall, it will not accept an SSH request from your home computer. However, from work you can set up
an SSH tunnel using remote forwarding.