autossh
« Back to VersTracker
Description:
Automatically restart SSH sessions and tunnels
Type: Formula  |  Latest Version: 1.4g@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Networking
Tags: ssh tunneling networking automation persistence
Install: brew install autossh
About:
autossh is a utility that monitors SSH connections and automatically restarts them if they drop. It leverages SSH's built-in monitoring capabilities to detect connection failures, ensuring persistent and reliable access to remote systems. This tool is essential for maintaining long-lived SSH tunnels and sessions without manual intervention.
Key Features:
  • Monitors SSH connections for failures
  • Automatically restarts dropped sessions
  • Supports persistent SSH tunnels
  • Lightweight and scriptable
Use Cases:
  • Maintaining persistent SSH tunnels for remote access
  • Ensuring reliable connections for automated backup scripts
  • Keeping port forwards active for development environments
Alternatives:
  • systemd – Can manage SSH services but is more complex to configure for simple tunnel monitoring.
  • autossh (Go port) – A modern Go implementation, but the original C version is widely used and battle-tested.
License: BSD-1-Clause
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, arm64_ventura, arm64_monterey, arm64_big_sur, sonoma, ventura, monterey, big_sur, catalina, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Sep 13, 2025 1:06pm 0 VERSION_BUMP 4e95b9d3