Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 sshguard

查看 sshguard 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install sshguard

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install sshguard

MacPorts ports tree · net/sshguard/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add sshguard

Alpine Linux edge package indexes · sshguard · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install sshguard

Debian stable package indexes · sshguard · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install sshguard

Fedora Rawhide package metadata · sshguard · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#sshguard

nixpkgs package indexes · pkgs/by-name/ss/sshguard/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S sshguard

Arch Linux sync databases · sshguard · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install sshguard

openSUSE Tumbleweed package metadata · sshguard · 来源: download.opensuse.org

概览

软件包摘要

Protect from brute force attacks against SSH

命令和别名

  • sshguard

历史

项目历史与用法

SSHGuard is a small intrusion-prevention utility that watches system logs for brute-force attacks and blocks repeat offenders through a firewall backend. It became package-manager material because it gives Unix administrators a lightweight alternative to heavier log-monitoring stacks.

项目历史

The official manual and README describe SSHGuard as a tool that aggregates logs and blocks attackers using backends such as pf, ipfw, firewalld, iptables, ipset, nftables, IPFILTER, and hosts.allow. The manual copyright dates begin in 2007, and the current manual version is 2.5.1.

采用历史

SSHGuard's official site emphasizes portability and small size, describing it as small C and Bourne shell code with support for many log sources and firewall systems. The input package-manager facts show it available across Homebrew, Debian, Ubuntu, Fedora, Arch, Alpine, Nix, MacPorts, and openSUSE ecosystems.

使用方式

Operators configure `sshguard.conf`, choose a backend, and feed SSHGuard logs through files, syslog-style services, systemd journal, or macOS log streaming. Attackers are blocked after their score exceeds a threshold and can be temporarily blocked, permanently blacklisted, or whitelisted through explicit addresses or a whitelist file.

为什么软件包爱好者会关心

Package nerds care because SSHGuard is pure Unix plumbing: logs in, firewall commands out, minimal daemon surface. It is a good example of security tooling whose packaging value lies in service files, default config paths, backend selection, and integration with each operating system's logging and firewall conventions.

时间线

  • 2007: Official sshguard(8) manual copyright period begins.
  • 2024: Official website footer and current site generation reflect active project site maintenance.
  • 2025: Official manual pages list version 2.5.1 and date January 1, 2025.

Related projects

  • SSHGuard is related to OpenSSH server logs, syslog, systemd journal, pf, ipfw, firewalld, iptables, ipset, nftables, IPFILTER, and other brute-force blocking tools.

安全态势

风险级别:orange

broad file, network, media, or database tool signal. formula declares a Homebrew service.

风险分类器

orange 风险 · 中 置信度 · infrastructure

原因

  • broad file, network, media, or database tool signal
  • formula declares a Homebrew service

信号

  • metadata:service
  • text:ssh

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • formula 元数据声明了服务或守护进程块。
  • Homebrew bottle 元数据适用于 8 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
%PREFIX%/etc/sshguard.conf

可执行文件

已安装的可执行文件

命令类型暴露范围备注
sshguardcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-26
管理器版本2.5.1
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

https://www.sshguard.net/

  • 信息No package-manager update timestamp was available.低 置信度
  • 信息Release/tag comparison is only available for GitHub repositories.https://www.sshguard.net/none 置信度

安装元数据

软件包元数据

软件包键brew:sshguard
版本2.5.1
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/sshguard
主页https://www.sshguard.net/
仓库https://bitbucket.org/sshguard/sshguard
上游文档https://bitbucket.org/sshguard/sshguard/raw/master/README.rst
许可证ISC
源码归档https://downloads.sourceforge.net/project/sshguard/sshguard/2.5.1/sshguard-2.5.1.tar.gz
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
Homebrew post-install未定义
服务declared
注意事项Add the following lines to /etc/pf.conf to block entries in the sshguard table (replace $ext_if with your WAN interface): table <sshguard> persist block in quick on $ext_if proto tcp from <sshguard> to any port 22 label "ssh bruteforce" Then run sudo pfctl -f /etc/pf.conf to reload the rules.

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namesshguard
Version Scheme1
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

sshguard 2.4.3-1

Protects from brute force attacks against ssh

https://sshguard.sourceforge.net

sudo apt install sshguard
  • Section: net
  • Architecture: amd64
  • 2 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Sshguard
Debian stable package indexes · deb.debian.org · Debian stable package indexes: sshguard from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

sshguard

nix profile install nixpkgs#sshguard
  • normalized package name match
  • 匹配方式:Sshguard
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ss/sshguard/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

sshguard 2.4.2-1

Protects from brute force attacks against ssh

http://sshguard.sourceforge.net

sudo apt install sshguard
  • Section: universe/net
  • Architecture: amd64
  • 2 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Sshguard
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: sshguard from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

sshguard 2.5.1-r0

Protects hosts from brute-force attacks against SSH and other services

https://www.sshguard.net/

sudo apk add sshguard
  • License: ISC
  • Architecture: x86_64
  • Source Package: sshguard
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Sshguard
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: sshguard from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

sshguard-doc 2.5.1-r0

Protects hosts from brute-force attacks against SSH and other services (documentation)

https://www.sshguard.net/

sudo apk add sshguard-doc
  • License: ISC
  • Architecture: x86_64
  • Source Package: sshguard
  • normalized package name match
  • 匹配方式:Sshguard
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: sshguard-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

sshguard-openrc 2.5.1-r0

Protects hosts from brute-force attacks against SSH and other services (OpenRC init scripts)

https://www.sshguard.net/

sudo apk add sshguard-openrc
  • License: ISC
  • Architecture: x86_64
  • Source Package: sshguard
  • normalized package name match
  • 匹配方式:Sshguard
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: sshguard-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

sshguard 2.5.1-3.fc44

Protects hosts from brute-force attacks against SSH and other services

http://www.sshguard.net

sudo dnf install sshguard
  • License: BSD-3-Clause AND GPL-3.0-or-later AND LicenseRef-Fedora-Public-Domain
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: sshguard
  • 9 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Sshguard
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: sshguard from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

sshguard-firewalld 2.5.1-3.fc44

Configuration for firewalld backend of SSHGuard

http://www.sshguard.net

sudo dnf install sshguard-firewalld
  • License: BSD-3-Clause AND GPL-3.0-or-later AND LicenseRef-Fedora-Public-Domain
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: sshguard
  • 3 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Sshguard
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: sshguard-firewalld from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

sshguard-iptables 2.5.1-3.fc44

Configuration for iptables backend of SSHGuard

http://www.sshguard.net

sudo dnf install sshguard-iptables
  • License: BSD-3-Clause AND GPL-3.0-or-later AND LicenseRef-Fedora-Public-Domain
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: sshguard
  • 3 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Sshguard
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: sshguard-iptables from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

sshguard-nftables 2.5.1-3.fc44

Configuration for nftables backend of SSHGuard

http://www.sshguard.net

sudo dnf install sshguard-nftables
  • License: BSD-3-Clause AND GPL-3.0-or-later AND LicenseRef-Fedora-Public-Domain
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: sshguard
  • 2 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Sshguard
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: sshguard-nftables from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

sshguard 2.5.1-1

Brute force detector for SSH, Exim, VSFTPD and more. Blocks by ip with iptables

https://www.sshguard.net/

sudo pacman -S sshguard
  • License: GPL
  • Architecture: x86_64
  • 4 可选依赖
  • normalized package name match
  • 匹配方式:Sshguard
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: sshguard from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

sshguard 2.4.3-2.3

SSH brute force attack protector

https://www.sshguard.net/

sudo zypper install sshguard
  • License: ISC
  • Category: Productivity/Networking/Security
  • Architecture: x86_64
  • Source Package: sshguard
  • 7 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Sshguard
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: sshguard from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

sshguard

sudo port install sshguard
  • normalized package name match
  • 匹配方式:Sshguard
MacPorts ports tree · api.github.com · MacPorts ports tree: net/sshguard/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment