Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Nov 2009 20:45:18 +0100
From:      Peter Boosten <peter@boosten.org>
To:        patrick <gibblertron@gmail.com>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Remote ssh tunnel in background or script?
Message-ID:  <8E0BC73D-5A7E-4AA7-A07B-A0F9959D5F3A@boosten.org>
In-Reply-To: <b043a4850911091136u2fdedc08n7b83b70f7c7aceda@mail.gmail.com>
References:  <4AF85FC9.10103@daleco.biz> <b043a4850911091136u2fdedc08n7b83b70f7c7aceda@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 9 nov 2009, at 20:36, patrick wrote:

> Check out /usr/ports/security/autossh
>
> autossh is a program to start a copy of ssh and monitor it, restarting
> it as necessary should it die or stop passing traffic.
>
> The original idea and the mechanism were from rstunnel (Reliable SSH
> Tunnel). With this version the method changes: autossh uses ssh to
> construct a loop of ssh forwardings (one from local to remote, one
> from remote to local), and then sends test data that it expects to
> get back. (The idea is thanks to Terrence Martin.)
>
> WWW: http://www.harding.motd.ca/autossh/
>

You don't need additional software for that: you can easily spawn a  
ssh session from ttys, which re-establishes itself when it fails:

http://old.nabble.com/Re%3A-mysql-connection-through-ssl-tunnel-p20077382.html

-- 
http://www.boosten.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8E0BC73D-5A7E-4AA7-A07B-A0F9959D5F3A>