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
Similar entries
- ssh port forwarding without starting a new session
- Remote Desktop through a firewall: hardcore version.
- Using ssh forwarding to retrieve papers instead of VPN
- Access MySQL with mysql-query-browser over ssh tunnel
- Securely forward a TCP service with SSH
- SOCKS and SSHOES (dynamic port forwarding with SSH)
- How to VNC: Vista to Ubuntu 8.x.
- SSH tunnels and remote port forwarding
- Edit remote file with vim
- break the firewall/isp -- view blocked websites
