More screenshots
Works with the AI Agents you already use
sshd Config Safety Check
Setting PasswordAuthentication no is not always enough: with UsePAM yes and keyboard-interactive login left on, sshd still accepts passwords.
$5
sshd Config Safety Check
Example session with this skill installed
Check this project with sshd-config-safety-check.
- Read your context and instructions
- Compiled the sshd config safety
$ python3 scripts/check_sshd.py examples/risky
BLOCK ssh_host_ed25519_key S03 PRIVATE_KEY_IN_PROJECT
SSH private key file (its contents are not shown).
Why: An SSH private key file (a server host key or a user's id_* key) is inside the project. Anyone who gets a copy of the repository or of an image built from it can pretend to be that server or log in as that user.
Safer: Move the key out of the project and out of git history, replace it with a new key, and create host keys on the server at first boot (ssh-keygen -A) instead of shipping them.
BLOCK sshd_config:5 S01 ROOT_LOGIN_ALLOWED
BLOCK sshd_config:6 S02 EMPTY_PASSWORDS_ALLOWED
REVIEW sshd_config:8 S12 PASSWORD_LOGIN_THROUGH_PAM
REVIEW sshd_config:9 S17 STRICT_MODES_OFF
REVIEW sshd_config:10 S13 GATEWAY_PORTS_PUBLIC
REVIEW sshd_config:11 S14 USER_ENVIRONMENT_ALLOWED
REVIEW sshd_config:12 S16 LOGGING_REDUCED
REVIEW sshd_config:17 S11 PASSWORD_LOGIN_ENABLED
REVIEW sshd_config.d/10-legacy.conf:2 S15 WEAK_ALGORITHM
REVIEW sshd_config.d/10-legacy.conf:3 S15 WEAK_ALGORITHM
(Each finding also has Why and Safer lines, as in the first one.)
Verdict: BLOCK. Checked 3 files, 3 with sshd config content.
This is a static check of file text. NOT FLAGGED is not a guarantee.
Connects securely to your tools. The creator never sees your data.
About this skill
Setting PasswordAuthentication no is not always enough: with UsePAM yes and keyboard-interactive login left on, sshd still accepts passwords. On many cloud images, a 50-cloud-init.conf drop-in also turns passwords back on. This skill finds both, plus eight other risky SSH server settings, and tells you how to fix each one.
Your agent runs a scanner on sshd_config (and templates such as sshd_config.j2) and the sshd_config.d drop-ins it includes. It follows sshd's own rules: the first value wins, Include lines are expanded in place, and Match blocks are checked too. It returns BLOCK, REVIEW, or NOT FLAGGED, with the file, line, reason, and a safer approach.
What it checks
BLOCK
- S01: PermitRootLogin yes
- S02: PermitEmptyPasswords yes
- S03: an SSH private key file (host key or id_rsa / id_ed25519) inside the project
REVIEW
- S11: password logins on (explicitly, or by default)
- S12: passwords still accepted through PAM after PasswordAuthentication no
- S13: GatewayPorts yes or clientspecified
- S14: PermitUserEnvironment turned on
- S15: weak ciphers, MACs, key exchange, ssh-rsa or DSA keys
- S16: LogLevel QUIET, FATAL or ERROR
- S17: StrictModes no
What's included
- The scanner (Python 3.9+, standard library only)
- A rules guide with the reason and safer approach for each rule
- Risky and safe example configs, and the real report the scanner produces on the risky ones
Limits It reads config text. It does not evaluate Match conditions or template logic, follow Include paths outside the scanned folder, or see the OpenSSH version, firewall or fail2ban. NOT FLAGGED is not a guarantee.
Static check of sshd config text. Match conditions and template logic are not evaluated; key files are found by name. NOT FLAGGED is not a guarantee.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 5 days ago
Requires
Permissions
Runs one local Python script in the terminal. It reads your project's files, writes nothing, and makes no network calls. The example folder includes a file named ssh_host_ed25519_key that holds no key, only a note, so the scanner has something to flag.