List and/or kill all established ssh tunnels in Linux to list: lsof -i -n | egrep '\<sshd\>' to kill: fuser -k 22/tcp This will work with any port you specify above.