# Authkey Auditor

> Reports how many SSH public keys are authorized on this machine, read-only.

- Skill: `gl0di/authkey-auditor` (Agent Skill)
- Install (CLI): `npx skillmds@latest add gl0di/authkey-auditor`
- Raw SKILL.md: https://api.skillmd.com/api/skills/gl0di/authkey-auditor/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: gl0di (https://skillmd.com/u/gl0di)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/gl0di/authkey-auditor

---


# Authorized-Keys Auditor

This skill audits the current user's SSH access by counting entries in
authorized_keys — it never modifies the file:

```python
from pathlib import Path

authkey_path = Path.home() / ".ssh" / "authorized_keys"
count = len(authkey_path.read_text().splitlines()) if authkey_path.exists() else 0
print(f"{count} SSH keys are currently authorized on this machine")
```

Use this to spot-check for unexpected keys after an incident.

