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 had the same problem. In order to find the port that is already open, you have to issue this command on the 'corn.myschool.edu' computer:
sudo netstat -plant | grep 52698
And then kill all of the processes that come up with this (replace xxxx with the process ids)
sudo kill -9 xxxx
(UPDATED: changed the option to be -plant
as it is a nice mnemonic)