Projects / Autossh

Autossh

Autossh is a program to monitor and automatically reestablish SSH connections. It is similar to rstunnel (Reliable SSH Tunnel), however, it is implemented in C, and is easier to set up and use, especially for connections to multiple hosts. Autossh has been compiled and tested on OpenBSD, Linux, and Solaris, and should run without needing changes on FreeBSD and NetBSD.

Tags
Operating Systems
Implementation

Recent releases

  •  16 Oct 2011 03:40

    Release Notes: This update makes autossh not exit on an initial connection failure when running in the background, updates the internal list of valid OpenSSH options, and adds some fixes to configure.

    •  11 Apr 2008 21:44

      Release Notes: This release adds a maximum lifetime option, a compile time option for touching the PID file on each connection test, and a fix for looping on poll.

      •  13 Jul 2006 18:02

        Release Notes: This minor release fixes some bugs in the Makefile and a bug when creating PID files.

        •  06 Jun 2006 00:04

          Release Notes: This release includes a number of bugfixes and minor enhancements. The biggest change is the move to using autoconf, and the more modern "./configure; make" process rather than OS-specific makefiles.

          •  23 Mar 2005 08:26

            Release Notes: This release adds a new monitoring method using a remote echo service, and contains fixes for a number of serious bugs.

            Recent comments

            15 Oct 2012 15:52 ctor

            Once you have set up your SSH keys on the server you can run multiple instances of autoSSH (I use for vim and console) by setting an alias for this loop in the bashrc:

            alias cxn='i=20000; autossh -M $i -o TCPKeepAlive=yes -o ServerAliveCountMax=3 -o ServerAliveInterval=10 user@server -L 1091:localhost:80; while [ $? -ne 0 ]; do let i=i+1; autossh -M $i -o TCPKeepAlive=yes -o ServerAliveCountMax=3 -o ServerAliveInterval=10 user@server -L 1091:localhost:80; done;'

            Screenshot

            Project Spotlight

            OpenStack4j

            A Fluent OpenStack client API for Java.

            Screenshot

            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.