Skip to main content

Workstation Toolbox

SSH Doctor

Read-only diagnostics for a local SSH client. SSH Doctor inspects OpenSSH, configuration, keys, permissions, the agent, and known-host files, then reports what it found and how to fix it.

It does not change keys, configuration, permissions, known hosts, or the agent. It does not ask for passphrases.

Requirements

  • Python 3.11 or newer
  • macOS or Linux
  • OpenSSH client utilities (ssh, ssh-keygen, ssh-add, ssh-agent)

Install

pip install lupaxa-ssh-doctor
ssh-doctor --help

Commands

ssh-doctor check
ssh-doctor check --json
ssh-doctor system
ssh-doctor permissions
ssh-doctor keys
ssh-doctor config
ssh-doctor config --host github.com
ssh-doctor agent
ssh-doctor known-hosts
ssh-doctor known-hosts github.com

check runs the local diagnostics and does not open network connections. --verbose prints extra detail. --quiet hides passes and skips. --timeout sets the limit, in seconds, for each external command.

Output

Each check is PASS, WARN, FAIL, or SKIP. A summary line gives the counts. --json prints one document with the version, timestamp, operating system, results, and summary. Colour is used on a terminal and turned off when NO_COLOR is set.

Exit Codes

Code Meaning
0 No failures or warnings
1 One or more warnings
2 One or more failures
3 Invalid arguments or application configuration
4 Diagnostic execution could not be completed

Skipped checks alone do not change a successful exit.

Configuration

An optional TOML file can set the SSH directory, extra key directories, extra known-host files, enabled or disabled categories, the timeout, the default output format, and warning identifiers to hide. The file is ~/.config/ssh-doctor/config.toml, or the path in --config or SSH_DOCTOR_CONFIG. The tool works with no configuration file.

ssh_directory = "~/.ssh"
timeout = 10
output_format = "text"
disabled_categories = ["agent"]
suppressed_warnings = ["keys.obsolete.id_dsa"]

Development

make init
make python-install-dev
make python-check
The Lupaxa Project Footer

Metadata

Release files for lupaxa-ssh-doctor 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lupaxa-ssh-doctor 0.1.0
File Size Uploaded Provenance Actions
lupaxa_ssh_doctor-0.1.0.tar.gz 22.3 kB With provenance Details for lupaxa_ssh_doctor-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lupaxa-ssh-doctor 0.1.0
File Interpreter ABI Platform Actions
lupaxa_ssh_doctor-0.1.0-py3-none-any.whl Python 3 none any Details for lupaxa_ssh_doctor-0.1.0-py3-none-any.whl

Total release size: 48.2 kB

Release files / lupaxa_ssh_doctor-0.1.0.tar.gz

Download URL lupaxa_ssh_doctor-0.1.0.tar.gz
Size 22.3 kB
Tags Source
SHA-256 checksum
How to use checksums
21070f1c9623cf5e129b34b12774f9a41d1d48c5ce841eae2426c5fbe576d223
BLAKE2b-256 checksum
How to use checksums
5c43751ee56c014de4c7c8aceb093a42cda4426914d9ad5bccbb72f0aaedb78b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Release files / lupaxa_ssh_doctor-0.1.0-py3-none-any.whl

Download URL lupaxa_ssh_doctor-0.1.0-py3-none-any.whl
Size 25.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
93da3404b83eee4b67314b52bdbed9086855397982510d7bb4dc4cebfe015793
BLAKE2b-256 checksum
How to use checksums
f1f4a3494b0604a1fb3024e7c1fb19c4d1ae4a1be3119dcbe8d0760d54e6a128
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Security for lupaxa-ssh-doctor 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for lupaxa_ssh_doctor-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page