Oh you murderer, but let me assist:

kill -9 `ps -eo pid,args | grep "ssh " | grep -v "grep" | cut -c1-6`

This kills all ssh processes. I use this often to kill all my ssh tunnels. It works in Mac OS X Lion as well as Ubuntu/Debian Linux.

comments powered by Disqus