# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 sshpass

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

## 安装

```sh
sudo av install brew:sshpass
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install sshpass
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install sshpass
```

  证据: MacPorts ports tree: sysutils/sshpass/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add sshpass
```

  证据: Alpine Linux edge package indexes: sshpass from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install sshpass
```

  证据: Debian stable package indexes: sshpass from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install sshpass
```

  证据: Fedora Rawhide package metadata: sshpass 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#sshpass
```

  证据: nixpkgs package indexes: pkgs/by-name/ss/sshpass/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S sshpass
```

  证据: Arch Linux sync databases: sshpass from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install sshpass
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/sshpass
```

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

- winget (92%):

```sh
winget install --id xhcoding.sshpass-win32 -e
```

  证据: Windows Package Manager source index: xhcoding.sshpass-win32 from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:sshpass
- **软件包管理器:** Homebrew
- **版本:** 1.10
- **来源摘要:** Non-interactive SSH password auth
- **主页:** <https://sourceforge.net/projects/sshpass/>
- **最后更新:** 2026-07-04T13:13:44+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- sshpass (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.10
## 项目历史与用法

sshpass is a small CLI for non-interactive SSH password authentication. It occupies a controversial but persistent niche: automating password-based SSH in scripts even though the project page itself says most users should prefer SSH public-key authentication.

### 项目历史

The official SourceForge project describes sshpass as a tool for performing SSH interactive keyboard password authentication non-interactively. The official file feed shows public tarball releases beginning with 0.01 in January 2006, followed by 1.00 in March 2006 and later maintenance releases through 1.10 in February 2023.

### 采用历史

The input package-manager facts show sshpass packaged across many ecosystems, including Homebrew, Debian, Ubuntu, Fedora, Arch, Alpine, Nix, MacPorts, openSUSE, Scoop, winget, and others. That breadth reflects the demand for a tiny compatibility utility in CI scripts, provisioning tools, and legacy environments.

### 使用方式

sshpass is commonly used when a command expects interactive SSH password entry but a script needs to supply it non-interactively. The official project description frames this as password-auth automation and explicitly warns that public-key authentication is the more secure normal path.

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

Package nerds care because sshpass is a classic example of a tiny package with a huge policy footprint: useful, often frowned upon, easy to package, and frequently debated in automation contexts. Its existence in package catalogs documents the gap between ideal SSH key hygiene and the messy reality of legacy systems.

### 时间线

- 2006: Official SourceForge file feed lists sshpass 0.01 on 5 January 2006.
- 2006: Official SourceForge file feed lists sshpass 1.00 on 16 March 2006.
- 2011: Official SourceForge file feed lists sshpass 1.05 on 6 August 2011.
- 2016: Official SourceForge file feed lists sshpass 1.06 on 30 June 2016.
- 2021: Official SourceForge file feed lists sshpass 1.07, 1.08, and 1.09.
- 2023: Official SourceForge file feed lists sshpass 1.10 on 12 February 2023.

### Related projects

- sshpass is related to OpenSSH, password-authenticated automation, CI/provisioning scripts, expect-style terminal automation, and public-key based SSH workflows.

### 来源

- <https://sourceforge.net/projects/sshpass>
- <https://sourceforge.net/projects/sshpass/rss?path=/>
- source_facts.package-manager


## 安全说明

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

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 其他软件包管理器记录

- Debian apt - sshpass - 1.10-0.1: normalized package name match | Debian stable package indexes: sshpass from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Non-interactive ssh password authentication | https://sourceforge.net/projects/sshpass
- Nix - sshpass: normalized package name match | nixpkgs package indexes: pkgs/by-name/ss/sshpass/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - sshpass - 1.09-1: normalized package name match | Ubuntu 24.04 LTS package indexes: sshpass from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Non-interactive ssh password authentication | https://sourceforge.net/projects/sshpass
- apk - sshpass - 1.10-r0: normalized package name match | Alpine Linux edge package indexes: sshpass from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Non-interactive SSH authentication utility | https://sourceforge.net/projects/sshpass/
- apk - sshpass-doc - 1.10-r0: normalized package name match | Alpine Linux edge package indexes: sshpass-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Non-interactive SSH authentication utility (documentation) | https://sourceforge.net/projects/sshpass/
- dnf - sshpass - 1.09-13.fc45: normalized package name match | Fedora Rawhide package metadata: sshpass from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Non-interactive SSH authentication utility | http://sshpass.sourceforge.net/
- pacman - sshpass - 1.10-2: normalized package name match | Arch Linux sync databases: sshpass from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Fool ssh into accepting an interactive password non-interactively | https://sourceforge.net/projects/sshpass/
- zypper - sshpass - 1.10-2.3: normalized package name match | openSUSE Tumbleweed package metadata: sshpass from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Non-interactive SSH authentication utility | https://sshpass.sourceforge.net/
- MacPorts - sshpass: normalized package name match | MacPorts ports tree: sysutils/sshpass/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/sshpass: normalized package name match | Scoop official bucket manifest trees: bucket/sshpass.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - xhcoding.sshpass-win32: normalized package name match | Windows Package Manager source index: xhcoding.sshpass-win32 from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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


## 来源

- 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
