Background: I had previously SSH'd into a server and CD to directory /opt/foo when I got kicked out by network troubles. A colleague was trying to delete that directory and could not delete it.
- SSH into the server
- Execute
whoto get the active sessions. - Try to locate the
pts/Nsession from the list. - Now execute
ps -ef | grep -i sshdand from the list, locate the PID for the SSHD session that haspts/N. - Kill this process,
kill -9 PID.
http://www.vineetmanohar.com/2010/03/howto-rotate-tomcat-catalina-out/
http://serverfault.com/questions/725262/what-causes-the-connection-refused-message