You can use SSH to forward ports from one machine to another. This is useful for connecting to a machine that, for example, is behind a firewall. Here is how to do it (remote.host.com is the remote host, local.host.com is the local machine, 9999 is the example remote port, and 22 is the local sshd daemon): $ ssh -g -R 9999:local.host.com:22 root@remote.host.com This sets up a secure connection between port 22 on the local machine and port 9999 on the remote host as user root. Once this is in place, you can connect to remote.host.com from other.host.net: $ ssh -p 9999 remote.host.com and this forwards your connection to port 22 on local.host.com. Super useful!

Spread the word:
  • Digg
  • Technorati
  • del.icio.us
  • YahooMyWeb
  • co.mments
  • Furl

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!