delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/11/06/09:16:52

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Andrew Schulman <schulman DOT andrew AT epamail DOT epa DOT gov>
Subject: Re: SSH dropping out
Date: Thu, 06 Nov 2008 09:15:43 -0500
Lines: 10
Message-ID: <csu5h49ohbilio4fmk46nccjtrnnha9lfc@4ax.com>
References: <4912C7F1 DOT 3000701 AT btinternet DOT com>
Mime-Version: 1.0
X-Archive: encrypt
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

> Is there a way, from within the same batch script used to make the SSH 
> connection, to send a packet of data, or something similar, every minute 
> so that the connection will be kept alive?

Have a look at autossh, which does this and also restarts any ssh connection
which is still alive but has stopped passing data.  You can even set it up to
run as a service, so that your TCP tunnels will be available from boot.  See the
README.Cygwin file for details.

Andrew.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019