Solved

Killing ssh process on server carrier loss

Posted on 2004-04-19
2
269 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
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now