Why not use autossh? Here's a startup script for autossh that allows you to start/stop multiple tunnels: http://surniaulula.com/2012/12/10/autossh-startup-script-for-multiple-tunnels/

js.