Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 Mar 22 '12 at 18:07

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

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


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.