ssh tunnel

SSH

Example 1 – closed local port on host

22 port – opened on 99.88.77.66 for external network

80 port – closed on on 99.88.77.66 for external network

Result:
Port 80 from 99.88.77.66 will be accessible on localhost:10080

ssh [email protected] -L 10080:127.0.0.1:80 

Example 2 – port on internal host

Host 99.88.77.66 has internal Network 192.168.1.0/24

Host 192.168.1.222 with opened port 80 present in this network.

Result:

Port 80 from 192.168.1.222 will be accessible on localhost:10080

ssh [email protected] -L 10080:192.168.1.222:80 

Putty

putty-tunnel01