• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 280
  • Last Modified:

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.

0
akredhat
Asked:
akredhat
1 Solution
 
owensleftfootCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now