Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Here is my scenario

I run a VPN client to initiate connection to my corporate network. The VPN will disconnect every 24 hrs. I can reconnect immediately. I initiate ssh sessions to some servers after establishing VPN connection.

The problem I have is I lose the ssh session every 24 hrs. I do have screens running to regain my sessions.

Is there an ssh client or ssh option that will tolerate 30 seconds or 1 min of break in the link with the server?

share|improve this question

migrated from stackoverflow.com Mar 22 '12 at 18:07

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 0 down vote accepted

Use autossh. Links to home page, man page. If you are using Linux then it's probably packaged in your distribution.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.