Solved

Automatically re-SSH when network is available?

Posted on 2009-04-07
1
467 Views
Last Modified: 2012-08-14
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?

Thanks!
0
Comment
Question by:Geesu
1 Comment
 

Accepted Solution

by:
Geesu earned 0 total points
ID: 24092154
And of course I answer my own question...

http://jonsview.com/2009/03/01/how-to-automatic-ssh-tunnel
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Information security is a multi-billion dollar industry. Just as lucrative is the black market industry which trades stolen identities, credit card numbers and software exploits all over the world. Nothing is hack-proof. The best one can do is make …
Are you looking to clear some space on your phone for the latest iOS 8 update? Did you switch to Spotify so you no longer need to keep music native on your phone? Run out of space for taking photos while in the middle of vacation? Sometimes the quic…
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 > …
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question