SSH Tunnelling

Still no breakthrough. I’m trying to automatically set up SSH tunnels.
Because sysads doesn’t like passphrases, I have to use expect to
automate the password. I want the tunnels to be automatically brought
up when and only when the interface is up and the school profile is
selected. I’m using laptop-net to manage different network
configurations – I’m a laptop user, so I tend to move around a fair

I need this to work in order to have tunnelled secure SMTP out to, as firewalls prevent me from making a direct
connection. Any ideas? I’ve been playing around with expect, but so
far, no joy.