ssh-audit inspects SSH banners, algorithms, and compatibility for servers and clients. It reports security notes, recommendations, and optional policy checks.
Overview
ssh-audit is a command-line tool for reviewing SSH server and client configurations. It connects to a target, collects banner and algorithm information, and prints details about key exchange, host keys, encryption, MAC, and compression offerings.
Standard audits summarize whether algorithms are deprecated, weak, or absent and may suggest changes based on recognized software versions. It tracks historical behavior for OpenSSH, Dropbear, and libssh to contextualize findings. Policy mode compares a host against built-in or custom hardened policies and can exit with a status code for automation.
The tool runs on Linux and Windows, targets Python 3.10 through 3.15, and ships without runtime dependencies beyond Python. Distribution channels include PyPI, Snap, Docker, and Windows release binaries. Optional features cover batch output, SOCKS5 proxies, UNIX socket targets, and client-side configuration listening on a test port.
Built-in hardening guides can be listed from the tool, and a separate web front-end wraps the same auditing behavior for browser use.
Key features
- Server and client SSH audits
- Algorithm security reporting
- Built-in and custom policies
- Batch multi-host scans
- Hardening guide references
- Docker and PyPI packages
- No extra Python dependencies
- JSON and verbose output modes
Use cases
- Checking SSH cipher suites
- Compliance policy verification
- Hardening OpenSSH deployments
- Batch auditing many hosts