Automatically re-SSH when network is available?

As the title says. I frequently move from different locations and plug in or use wireless (sometimes 5X/day) and I'd like some type of solution that automatically SSHs when the connection is available. I use an SSH tunnel for some traffic + connecting to my home network so this is very valuable.

Currently I have a script which opens terminal + SSHs to 2 servers (I use the public key authentication so I don't have to login). But this still requires me to close terminal, then run the script again (which the AppleScript still takes 2-8 seconds to open sometimes).

Is there a solution for this? Some type of persistent-SSH connection keeper?

Featured Post

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Yesterday Apple introduced their revolutionary new iOS 5 operating system that claims to be the ultimate mobile technology interface. One of the biggest innovations of the new operating system is the introduction of the iCloud computing network. Thi…

A common question or need, when setting-up a new Mac for someone would be to make all of the applications, installed, available from the dock. Many people often do not realize an application is installed unless it is in the dock.
Creating a custo…

Users will learn how resize a batch of photos from a single command in Photoshop via Photoshop's Image Processor.
Open up an Image you'd like to resize in Adobe Photoshop:
Adjust the image size according to your preferences. Image > Adjustments > …