SSH tunneling for dummies

If you ever find yourself behind a corporate firewall, as I have found myself at the PIKtipi sprint in Potsdam, and need to access a remote IRC server, here is a command to tunnel the traffic over SSH:

ssh -L 6667:irc.freenode.net:6667 yourserver.com

yourserver.com is a remote server (not firewalled) that you have access to. Of course, this assumes that the local firewall is not blocking SSH on port 22, otherwise you won’t be able to access the remote server.

Then you can connect to the remote IRC server by using localhost:6667.

Or if you don’t have time to type these commands in on the terminal, you can just use IRCatwork.com.

Technorati Tags:


2 Responses to “SSH tunneling for dummies”


  1. 1 witsch

    just btw, there’s no need to `sudo` there unless you wanna use a port below 1024…

  1. 1 Natespace » Blog Archive » Enabling Postfix on MacOSX Tiger

Leave a Reply