Open Settings -> Identities. Select your identity and goto Advanced tab and enter at Pre-shell command ~/ssh-tunnel.sh
~/ssh-tunnel.sh