Auto-closing SSH tunnels rmiddle Fri, 10/03/2008 - 12:18

http://www.g-loaded.eu/2006/11/24/auto-closing-ssh-tunnels/

The best way - Tunnels that auto-close