I\'m using SSH to access my university\'s afs system. I like to use rmate (remote TextMate), which requires SSH tunneling, so I included this alias in my .bashrc. <
In my case, the problem was that the remote system didn't have DNS properly set up, and it couldn't even resolve its own hostname. Make sure you have a working DNS in /etc/resolv.conf at the remote system.