CLI-Anything Bundle #22 — SSH Config Recon Pack

Four NEW agent-native CLI harnesses that answer the four "what does this machine actually trust over SSH" questions every server agent runs into but usually improvises: what does the sshd_config really say (effective directives the way sshd reads them, shadows named, Match blocks separate, Includes expanded with provenance), who is actually authorized (authorized_keys census with key sizes computed from key material, fingerprints byte-comparable with ssh-keygen, forced commands surfaced verbatim), what does this machine already trust (known_hosts census with hashed hostnames kept HASHED), and what shape is the key directory in (keypair hygiene with private files seen through metadata only — contents never opened). Every answer is read from on-disk truth — nothing is executed, nothing is written, nothing is fetched.

What's inside

The pipeline that matters

sshdpeek (what sshd enforces) → authkeyspeek (who is authorized to get in) → hostkeyspeek (what this machine already trusts going out and coming in) → keyringpeek (whether the key directory itself is in hygienic shape). Four stages; the machine's SSH trust posture read end to end.

Install — one step per skill

Unzip the pack and copy each skill folder (the one containing its SKILL.md) into your agent's skills directory:

cp -r sshdpeek authkeyspeek hostkeyspeek keyringpeek ~/.openclaw/skills/

Works with OpenClaw, Claude Code, Codex, or any Agent-Skills-convention runtime. Every skill also runs as a plain CLI (Python 3.8+, standard library only; no agent needed):

python3 sshdpeek/agent-harness/cli_anything/sshdpeek/__main__.py --json
python3 authkeyspeek/agent-harness/cli_anything/authkeyspeek/__main__.py --json
python3 hostkeyspeek/agent-harness/cli_anything/hostkeyspeek/__main__.py --json
python3 keyringpeek/agent-harness/cli_anything/keyringpeek/__main__.py --json

Self-check in 30 seconds

Every skill ships a self-test battery — synthetic fixtures plus live fire on the running host:

python3 runner_count.py sshdpeek/agent-harness/cli_anything/sshdpeek/tests/test_core.py
python3 runner_count.py authkeyspeek/agent-harness/cli_anything/authkeyspeek/tests/test_core.py
python3 runner_count.py hostkeyspeek/agent-harness/cli_anything/hostkeyspeek/tests/test_core.py
python3 runner_count.py keyringpeek/agent-harness/cli_anything/keyringpeek/tests/test_core.py

128 + 98 + 82 + 94 = 402 checks, 0 failed. The counting runner prints CHECKS_EXECUTED / FAILED / ERRORS and exits nonzero on any failure.

Hard lines held

Nothing is executed (no sshd, no ssh, no ssh-keygen), nothing is written, no sockets, no signals, zero subprocesses. Private key contents are never opened — metadata only. Hashed hostnames are never decoded. Unusable inputs are named refusals (the exit contract is printed on every human report), never stack traces. Read-only, always.

License

Apache 2.0. Source included.