Solved

Killing ssh process on server carrier loss

Posted on 2004-04-19
2
272 Views
Last Modified: 2012-05-04
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
Comment
Question by:akredhat
[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
2 Comments
 
LVL 17

Accepted Solution

by:
owensleftfoot earned 125 total points
ID: 10866973
I had the same problem and sorted it with http://www.harding.motd.ca/autossh/
0
 

Author Comment

by:akredhat
ID: 10870447
That is exactly what i was looking for.
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

726 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