# 使用 Homebrew, Nix 安装 ssh-mitm

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

## 安装

```sh
sudo av install brew:ssh-mitm
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ssh-mitm
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#ssh-mitm
```

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

## 软件包事实

- **软件包键:** brew:ssh-mitm
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/ssh-mitm>
- **版本:** 5.0.1
- **来源摘要:** SSH server for security audits and malware analysis
- **主页:** <https://docs.ssh-mitm.at>
- **仓库:** <https://github.com/ssh-mitm/ssh-mitm>
- **上游文档:** <https://docs.ssh-mitm.at>
- **许可证:** GPL-3.0-only
- **源码归档:** <https://files.pythonhosted.org/packages/f0/4e/c804d08c336bcff29fd665fdc3ff9d3698d529b1d75462b89bc53527862a/ssh_mitm-5.0.1.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- ssh-mitm (cli)
- ssh-mitm-askpass (cli)
- ssh-mitm (别名)
- ssh-mitm-askpass (别名)

## 依赖

- cryptography
- libsodium
- libyaml
- python@3.14

## 构建依赖

- pkgconf
- rust

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 5.0.1
- 本地数据: OK
- 上游仓库: https://docs.ssh-mitm.at
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

SSH-MITM is an interactive SSH interception tool for authorized security audits, penetration testing, training labs, and malware-analysis environments. Its package-manager relevance comes from making a specialized man-in-the-middle SSH audit workflow installable as a normal CLI rather than as a one-off lab script.

### 项目历史

The project presents itself as an active security research tool rather than a general-purpose SSH server. Its documentation says it was originally developed to study SSH client behavior and authentication weaknesses, especially the ambiguity around FIDO2 hardware-token confirmations in man-in-the-middle scenarios.

### 采用历史

The official README advertises multiple distribution channels, including AppImage, Flatpak, Snap, pip, and direct installation from GitHub. Homebrew and Nix packaging in the input show that it also entered package-manager catalogs used by security engineers who want reproducible CLI installs.

### 使用方式

Typical use places SSH-MITM between a client and a target SSH server, then runs commands such as `ssh-mitm server --remote-host <target-host>` and has a test client connect through the interception port. The tool can capture authentication, mirror live sessions, inspect or alter SFTP/SCP transfers, intercept port forwarding, and run audit plugins.

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

Package nerds care because SSH-MITM turns SSH protocol research into an installable command with extras such as tutorials, plugins, AppImage and desktop packaging, and documented CVE-driven audit workflows. It sits at the edge of package-manager culture where offensive security labs, training images, and repeatable toolchains meet.

### 时间线

- 2021: SSH-MITM research documented trivial-authentication CVEs affecting multiple SSH clients.
- 2022: The project documented follow-up CVEs related to the same SSH authentication research area.
- 2025: The changelog documents expansion into tutorials, plugin browsing, MOSH and PowerShell remoting interception, persistent host keys, and Terrapin detection improvements.

### Related projects

- SSH-MITM is closely related to OpenSSH, Paramiko, MOSH, SCP/SFTP clients, and SSH client vulnerability research. It is complementary to scanners and audit tools because it observes and manipulates live SSH sessions rather than only checking static configuration.

### 来源

- <https://docs.ssh-mitm.at/audit_guide/trivialauth.html>
- <https://docs.ssh-mitm.at/vulnerabilities/findings.html>
- <https://github.com/ssh-mitm/ssh-mitm#readme>
- <https://raw.githubusercontent.com/ssh-mitm/ssh-mitm/master/CHANGELOG.md>
- source_facts.package-manager


## 安全说明

broad file, network, media, or database tool signal. escape, surveillance, or offensive capability signal.

- **Geiger 风险:** red / 中
- broad file, network, media, or database tool signal
- escape, surveillance, or offensive capability signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** ssh-mitm
- **Version Scheme:** 0
- **Revision:** 4
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Nix - ssh-mitm: normalized package name match | nixpkgs package indexes: pkgs/by-name/ss/ssh-mitm/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://pkg.so/zh-hans/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [tsshd](https://pkg.so/zh-hans/brew/tsshd/) - Shares pkgdb curated category or tags: cli, security, server, ssh.
- [openssh](https://pkg.so/zh-hans/brew/openssh/) - Shares pkgdb curated category or tags: cli, security, ssh.
- [teleport](https://pkg.so/zh-hans/brew/teleport/) - Shares pkgdb curated category or tags: cli, security, ssh.
- [ssh-copy-id](https://pkg.so/zh-hans/brew/ssh-copy-id/) - Shares pkgdb curated category or tags: cli, security, ssh.
- [bettercap](https://pkg.so/zh-hans/brew/bettercap/) - Shares pkgdb curated category or tags: cli, mitm, security.
- [ettercap](https://pkg.so/zh-hans/brew/ettercap/) - Shares pkgdb curated category or tags: cli, mitm, security.
- [openfga](https://pkg.so/zh-hans/brew/openfga/) - Shares pkgdb curated category or tags: cli, security, server.
- [virustotal-cli](https://pkg.so/zh-hans/brew/virustotal-cli/) - Shares pkgdb curated category or tags: cli, malware-analysis, security.
- [ssh-audit](https://pkg.so/zh-hans/brew/ssh-audit/) - Both packages touch the same language runtime or ecosystem. Shared terms: auditing, cli, python, python-3-14, security.
- [prowler](https://pkg.so/zh-hans/brew/prowler/) - Both packages touch the same language runtime or ecosystem. Shared terms: auditing, audits, cli, cryptography, libsodium.
- [scoutsuite](https://pkg.so/zh-hans/brew/scoutsuite/) - Both packages touch the same language runtime or ecosystem. Shared terms: auditing, cli, cryptography, libyaml, python.

## Combined YAML source

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


## 来源

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