?
Solved

Automatically re-SSH when network is available?

Posted on 2009-04-07
1
Medium Priority
?
470 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Hi Folks, This article is intended to throw some light or basically give an idea towards taking the first step in the world of Systems Administration. This would in the real context of the word "Systems Administration" which would mean right from…
A professional opinion on which Apple product to buy, and a tidbit about the WWDC.
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…

752 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