macOS
brew install autosshlocal Homebrew formula metadata
sudo port install autosshMacPorts ports tree · net/autossh/Portfile · source: api.github.com
brew
Automatically restart SSH sessions and tunnels. Version 1.4g via Homebrew; verified from local package data.
install
brew install autosshlocal Homebrew formula metadata
sudo port install autosshMacPorts ports tree · net/autossh/Portfile · source: api.github.com
sudo apk add autosshAlpine Linux edge package indexes · autossh · source: dl-cdn.alpinelinux.org
sudo apt install autosshDebian stable package indexes · autossh · source: deb.debian.org
sudo dnf install autosshFedora Rawhide package metadata · autossh · source: dl.fedoraproject.org
nix profile install nixpkgs#autosshnixpkgs package indexes · pkgs/by-name/au/autossh/package.nix · source: api.github.com
sudo pacman -S autosshArch Linux sync databases · autossh · source: geo.mirror.pkgbuild.com
sudo zypper install autosshopenSUSE Tumbleweed package metadata · autossh · source: download.opensuse.org
scoop install main/autosshScoop official bucket manifest trees · bucket/autossh.json · source: api.github.com
overview
Automatically restart SSH sessions and tunnels
history
autossh is a small C utility that starts ssh, monitors the connection, and restarts it when the session dies or stops passing traffic. It became a standard package-manager tool for keeping SSH tunnels alive without writing a custom supervisor loop.
The official README traces autossh's idea to rstunnel, Reliable SSH Tunnel. Early autossh releases changed the monitoring mechanism from the original rstunnel-style idea to a loop of SSH forwardings and later added support for a remote echo service.
The CHANGES file records version 1.1 as the initial release, then shows the program growing through practical tunnel-management fixes: startup gate handling, monitor-port behavior, signal handling, backgrounding, pid files, autoconf support, and compatibility with OpenSSH option changes.
autossh spread through Unix package systems because it solves an operationally boring but persistent problem: keeping reverse tunnels, long-lived forwards, and remote sessions running. The official page notes availability in OpenBSD and FreeBSD ports, Cygwin, and some Linux distributions; the input records packages across Homebrew, Debian, Ubuntu, Fedora, Alpine, Arch, MacPorts, Nix, Scoop, and zypper ecosystems.
The normal invocation is `autossh -M port[:echo_port] [ssh options]`. autossh owns only a few flags, notably the monitor port, foreground/background behavior, and version output; most arguments are passed through to ssh.
For modern OpenSSH, the README documents `-M 0` to disable monitor ports and rely on SSH exit behavior, often paired with `ServerAliveInterval`, `ServerAliveCountMax`, and `ExitOnForwardFailure`. This is why autossh is common in init scripts, launch agents, simple service units, and admin one-liners.
autossh is the sort of tiny package that persists because it does exactly one sysadmin job and has almost no policy surface. Package maintainers care about it because it sits at the intersection of OpenSSH option churn, daemon supervision, legacy Unix platforms, and service startup semantics.
security posture
broad file, network, media, or database tool signal.
blue risk · medium confidence · tool
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
autossh | cli | global executable | |
rscreen | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://www.harding.motd.ca/autossh/
install metadata
| Package key | brew:autossh |
|---|---|
| Version | 1.4g |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/autossh |
| Homepage | https://www.harding.motd.ca/autossh/ |
| Upstream docs | https://www.harding.motd.ca/autossh |
| License | BSD-1-Clause |
| Source archive | https://www.harding.motd.ca/autossh/autossh-1.4g.tgz |
| Bottle | available (on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | autossh |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
autossh 1.4g-1+b1
Automatically restart SSH sessions and tunnels
https://www.harding.motd.ca/autossh/
sudo apt install autosshautossh
nix profile install nixpkgs#autosshautossh 1.4g-1
Automatically restart SSH sessions and tunnels
https://www.harding.motd.ca/autossh/
sudo apt install autosshautossh 1.4g-r3
Automatically restart SSH sessions and tunnels
https://www.harding.motd.ca/autossh/
sudo apk add autosshautossh-doc 1.4g-r3
Automatically restart SSH sessions and tunnels (documentation)
https://www.harding.motd.ca/autossh/
sudo apk add autossh-docautossh 1.4g-21.fc44
Utility to autorestart SSH tunnels
https://www.harding.motd.ca/autossh/
sudo dnf install autosshautossh 1.4g-4
Automatically restart SSH sessions and tunnels
https://www.harding.motd.ca/autossh/
sudo pacman -S autosshautossh 1.4g-2.23
Automatically restart SSH sessions and tunnels
https://www.harding.motd.ca/autossh/
sudo zypper install autosshautossh
sudo port install autosshmain/autossh
scoop install main/autosshsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.