Pages

Monday, January 25, 2010

SSH Port Forwarding in 30 seconds

For those who want to access data behind a firewall, you can forward remote port onto a local port on your machine. For example, we want to forward the port 80 for abc.com to your localhost on port 8088. The only command you have to type is
ssh -L 8088:abc.com:80 user@abc.com
  • 8088 is the local port on your computer
  • abc.com is the distant host
  • 80 is the distant port to forward
  • user@abc.com is the credential used to log onto the host

No comments:

Post a Comment