X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Andrew Schulman <schulman.andrew@epa.gov>
Subject:  Re: start ssh port forwarding at boot time
Date: Mon, 16 Jun 2008 15:21:42 +0000 (UTC)
Lines: 18
Message-ID:  <loom.20080616T151710-67@post.gmane.org>
References:  <200806152323.12778.Matthias.Meyer@gmx.li> <g34310$6nn$1@ger.gmane.org> <200806160024.16757.Matthias.Meyer@gmx.li> <g347ig$gbr$1@ger.gmane.org> <4855A506.9E860E2A@dessent.net> <4855A6DB.28986AED@dessent.net>
Mime-Version:  1.0
Content-Type:  text/plain; charset=us-ascii
Content-Transfer-Encoding:  7bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

> Oh, and on the topic of automatically setting up ssh port forwarding as
> a service: OP should definitely use autossh.  This will keep the
> connection alive if it drops, automatically restarting it as necessary. 
> Otherwise, the first time it dies the service will stop and the user
> must manually restart it again.
> 
> I've been doing this (autossh port forwarding) for years and it's
> fantastically convenient.

Agreed.  I don't do this any more, but I did do it for years, and once it was
set up, it automatically started at boot and the port forward was always just
there-- I never had to think about it.

/usr/share/doc/autossh-1.4a/README.Cygwin has information about how to set this
up using autossh and cygrunsrv.

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/

