So,
what do you have to do to be able to enjoy wonders of SSH Tunnels? Not
that much. First of all, you need to
enable remote login on the box you
are going to use as SSH server. In
System
Preferences go to
Sharing
and then make sure that check box next to
Remote Login is
checked.
If this box directly connected to
the internet (which is most likely to happen in case of your home
computer), you are done. If your box is on private network behind
firewall, you will have to setup your firewall to enable outside
connections to port 22 on your SSH server. Different firewalls
will need to do different things to setup port forwarding. Below
is an example of such configuration screen for popular Linksys Router
You will have to replace 192.168.13.13
with IP address of your SSH server to make it work.