Automatically re-SSH when network is available?
Posted on 2009-04-07
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?