Solved

Automatically re-SSH when network is available?

Posted on 2009-04-07
1
469 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

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…
Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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…

717 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