SSH port forwarding

   

Let’s say you want to connect to the port 8080 on a machine that runs within the firewall of your company. If there’s VPN available, you could use it, however it would affect all your other connections. Probably the easier and most effective way is to use SSH forwarding and connect to the login server of your company or any other machine that you have shell access and can access the remote site on port 8080. You could then use use a local port of your machine to access the remote site:

ssh -L 8080:remotesite.com:8080 username@remoteloginserver.com

Having done that, you can access the remotesite:8080 by typing in your browser ‘localhost:8080′. The remote site thinks (and actually correctly) that all the connections originate from the ‘remoteloginserver.com’ to which your local request to port 8080 are forwarded to.

You may also want to do the... ... read more >>> panoskrt.wordpress.com

None