macOS
brew install autosshlocal Homebrew formula metadata
sudo port install autosshMacPorts ports tree · net/autossh/Portfile · 来源: api.github.com
安装
brew install autosshlocal Homebrew formula metadata
sudo port install autosshMacPorts ports tree · net/autossh/Portfile · 来源: api.github.com
sudo apk add autosshAlpine Linux edge package indexes · autossh · 来源: dl-cdn.alpinelinux.org
sudo apt install autosshDebian stable package indexes · autossh · 来源: deb.debian.org
sudo dnf install autosshFedora Rawhide package metadata · autossh · 来源: dl.fedoraproject.org
nix profile install nixpkgs#autosshnixpkgs package indexes · pkgs/by-name/au/autossh/package.nix · 来源: api.github.com
sudo pacman -S autosshArch Linux sync databases · autossh · 来源: geo.mirror.pkgbuild.com
sudo zypper install autosshopenSUSE Tumbleweed package metadata · autossh · 来源: download.opensuse.org
scoop install main/autosshScoop official bucket manifest trees · bucket/autossh.json · 来源: api.github.com
概览
Automatically restart SSH sessions and tunnels
历史
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.
安全态势
broad file, network, media, or database tool signal.
blue 风险 · 中 置信度 · tool
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
autossh | cli | 全局可执行文件 | |
rscreen | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://www.harding.motd.ca/autossh/
安装元数据
| 软件包键 | brew:autossh |
|---|---|
| 版本 | 1.4g |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/autossh |
| 主页 | https://www.harding.motd.ca/autossh/ |
| 上游文档 | https://www.harding.motd.ca/autossh |
| 许可证 | BSD-1-Clause |
| 源码归档 | https://www.harding.motd.ca/autossh/autossh-1.4g.tgz |
| Bottle | 可用 (于 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 | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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/autossh来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.