Killing ssh process on server carrier loss
Posted on 2004-04-19
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.