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
. <
I experienced this problem, but it was while connecting to a server on which I don't have sudo priviliges, so the top response suggesting runing sudo netstat ...
wasn't feasible for me.
I eventually figured out it was because there were still instances of rmate running, so I used ps
to list the running processes and then kill -9 pid
(where pid is the process ID for rmate).