Remote ssh tunnel in background or script?

Peter Boosten peter at boosten.org
Mon Nov 9 19:45:24 UTC 2009


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


More information about the freebsd-questions mailing list