Skip to content

ssh-audit

Python command-line auditor for SSH server and client configuration hardening

Permissive (OSI) · MIT
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

53

Health

Slowing

Overview

Stars

4,350

Last commit

yesterday

Nov 2026

Repository age

9 years

since Sep 2017

Latest version

v3.9.0

Jul 2026

Contributors

–

3 active in 90 days

Releases

1

last 12 months

Language

Python

ssh-audit checks the configuration of SSH servers and clients. It connects to a target, reads the banner, identifies the software and operating system, and collects the key-exchange, host-key, encryption and MAC algorithms on offer.

For each algorithm it reports security status, such as weak, legacy or removed, and when it became available. It also recommends what to add or remove based on the detected software version. Policy scans let you test a server against a built-in or custom hardened policy. The exit code is 0 when all algorithms pass or the policy check succeeds, so it works in scripts.

You can audit one host, a list of targets from a file, or a client by running ssh-audit in client mode and connecting to it. It is a single Python tool with no dependencies, supports Python 3.10 to 3.14, and runs on Linux, macOS and Windows. A Docker image and a Homebrew formula exist. It is MIT licensed and is the maintained fork of arthepsy/ssh-audit.

Who it's for

Sysadmins hardening SSH on server fleets

Batch scans and policy checks with exit codes fit routine audits and scripts.

Skip if: You need a full vulnerability scanner that covers more than SSH.

Security reviewers and pentesters

It quickly shows weak algorithms and software fingerprints on a target.

Skip if: You need exploitation tooling rather than configuration review.

Developers checking their own SSH client settings

Client audit mode lists the algorithms your client offers.

Skip if: You only use default OpenSSH on current releases and have no compliance requirement.

The problem it solves

SSH servers often keep outdated algorithms enabled, and it is hard to tell which ones are unsafe. You need a quick way to see what a host or client offers and what to change.

Strengths

  • Audits both servers and clients
  • Built-in and custom policy scans with a clear exit code
  • Batch mode scans many targets from a text file
  • No dependencies; supports Python 3.10 to 3.14
  • MIT license, plus Docker image and Homebrew formula

Trade-offs

  • Reports and recommends; it does not change any configuration for you
  • Maintenance is slowing, with one release in the last year
  • Focused on SSH only

Self-host ssh-audit

Self-hostable
No (desktop or local app)

Quick start

ssh-audit localhost

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is ssh-audit free?

Yes. It is MIT licensed.

How do I scan many servers?

Put one HOST[:PORT] per line in a text file and run ssh-audit -T with that file.

Can it audit an SSH client?

Yes. Run ssh-audit -c to start a listener on port 2222, then connect to it with your client.

Which platforms does it run on?

It runs on Linux, macOS and Windows with Python 3.10 to 3.14. A Docker image is also available.

Similar tools in Vulnerability and application security tools

ZAP

Vulnerability and application security tools

Free web app security scanner and intercepting proxy for developers and pentesters

16k 2.7k 3 days ago Active Apache-2.0

Replaces Burp Suite

wfuzz

Vulnerability and application security tools

Command-line web fuzzer for pentesters who inject payloads into any part of an HTTP

6.6k 1.4k 10 months ago Dormant GPL-2.0

Deepfence ThreatMapper

Vulnerability and application security tools

Cloud-native security scanner that ranks vulnerabilities, secrets and misconfigurations

5.3k 631 6 months ago Dormant Apache-2.0

Smap

Vulnerability and application security tools

Passive, Nmap-compatible port scanner for quick recon without touching targets

3.3k 324 3 months ago Slowing AGPL-3.0

dradis-ce

Vulnerability and application security tools

848 228 yesterday Slowing GPL-2.0