# Installer autossh avec Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de autossh pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:autossh
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install autossh
```

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install autossh
```

  Preuve: MacPorts ports tree: net/autossh/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add autossh
```

  Preuve: Alpine Linux edge package indexes: autossh from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install autossh
```

  Preuve: Debian stable package indexes: autossh from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install autossh
```

  Preuve: Fedora Rawhide package metadata: autossh from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#autossh
```

  Preuve: nixpkgs package indexes: pkgs/by-name/au/autossh/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S autossh
```

  Preuve: Arch Linux sync databases: autossh from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install autossh
```

  Preuve: openSUSE Tumbleweed package metadata: autossh from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/autossh
```

  Preuve: Scoop official bucket manifest trees: bucket/autossh.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## Faits du paquet

- **Clé du paquet:** brew:autossh
- **Gestionnaire de paquets:** Homebrew
- **Version:** 1.4g
- **Résumé source:** Automatically restart SSH sessions and tunnels
- **Page d'accueil:** <https://www.harding.motd.ca/autossh/>
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- autossh (alias)
- rscreen (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 1.4g
## Historique du projet et usages

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.

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

- Version 1.1: Initial release recorded in upstream CHANGES.
- Version 1.2: Major restructuring added looped forwarded ports for connection tests and backoff after rapid failures.
- Version 1.3: Remote echo-service monitoring and SIGUSR1 restart behavior added.
- Version 1.4: Basic GNU autoconf support and pid-file support added.
- 2019: Version 1.4g update noted on the official homepage.

### Related projects

- OpenSSH: autossh supervises the ssh client and passes through most options.
- rstunnel: upstream credits it as the original idea.
- screen: upstream mentions use with screen for persistent sessions.

### Sources

- <https://www.harding.motd.ca/autossh>
- <https://www.harding.motd.ca/autossh/CHANGES.txt>
- <https://www.harding.motd.ca/autossh/README.txt>
- source_facts.package-manager


## Notes de sécurité

broad file, network, media, or database tool signal.

- **Risque Geiger:** blue / moyen
- broad file, network, media, or database tool signal

## Autres enregistrements de gestionnaires de paquets

- Debian apt - autossh - 1.4g-1+b1: normalized package name match | Debian stable package indexes: autossh from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Automatically restart SSH sessions and tunnels | https://www.harding.motd.ca/autossh/
- Nix - autossh: normalized package name match | nixpkgs package indexes: pkgs/by-name/au/autossh/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - autossh - 1.4g-1: normalized package name match | Ubuntu 24.04 LTS package indexes: autossh from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Automatically restart SSH sessions and tunnels | https://www.harding.motd.ca/autossh/
- apk - autossh - 1.4g-r3: normalized package name match | Alpine Linux edge package indexes: autossh from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Automatically restart SSH sessions and tunnels | https://www.harding.motd.ca/autossh/
- apk - autossh-doc - 1.4g-r3: normalized package name match | Alpine Linux edge package indexes: autossh-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Automatically restart SSH sessions and tunnels (documentation) | https://www.harding.motd.ca/autossh/
- dnf - autossh - 1.4g-22.fc45: normalized package name match | Fedora Rawhide package metadata: autossh from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Utility to autorestart SSH tunnels | https://www.harding.motd.ca/autossh/
- pacman - autossh - 1.4g-4: normalized package name match | Arch Linux sync databases: autossh from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Automatically restart SSH sessions and tunnels | https://www.harding.motd.ca/autossh/
- zypper - autossh - 1.4g-2.25: normalized package name match | openSUSE Tumbleweed package metadata: autossh from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Automatically restart SSH sessions and tunnels | https://www.harding.motd.ca/autossh/
- MacPorts - autossh: normalized package name match | MacPorts ports tree: net/autossh/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/autossh: normalized package name match | Scoop official bucket manifest trees: bucket/autossh.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/autossh.yml](https://github.com/mxcl/pkgdb/blob/main/combined/autossh.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
