Killing ssh process on server carrier loss

My situation is:
sshd running on windows2003 server on dialup connection which drops carrier every 24 hours.

ssh client on redhat linux (have tried SSH.com's ssh client & openSSH)

My problem is this: The ssh client process will continue running after the server drops carrier and reconnects.  when it drops and reconnects my ssh tunnel is broken, and not reestablished.  I have a cron job which will reconnect the ssh tunnel (if the previous ssh tunnel is not running).  So my question is, how can i get the ssh client box to check every minute or so if the connection is still valid?  I have put 'KeepAlive yes' into the ~/.ssh/config and that didn't help one bit.

akredhatAsked:
Who is Participating?
 
owensleftfootConnect With a Mentor Commented:
I had the same problem and sorted it with http://www.harding.motd.ca/autossh/
0
 
akredhatAuthor Commented:
That is exactly what i was looking for.
0
All Courses

From novice to tech pro — start learning today.