agentleFS
liutaosliutaos/ops-skills/skills/net-sec/ssh-keys/SKILL.md

ssh-keys

Skill0 starsChanged 52 days agoMITView on GitHub

SSH key auth configuration (generate / deploy / disable password). Use when: generating a keypair, deploying a public key, or turning off password login on an authorized server; never disable password auth before deploying a public key (avoid lockout). Boundary: authorized servers only.

  • Reads credentials

The file

Files
SKILL.md

ssh-keys

Capabilities

  • Generate keypair (RSA / Ed25519 / ECDSA)
  • Deploy public key to target

Safety gate

  • Private key stays only in local file / PEM field, never written to remote plaintext logs
  • PasswordAuthentication no hits the warnlist: --mode auto denies, needs --mode yes or interactive
  • Audit operations (host + exit code)

EXECUTION (real engine)

Public key deploy via file-write (write authorized_keys) + shell-exec (reload sshd).

opsctl file-write --host web1 --path /home/u/.ssh/authorized_keys --content "$(cat id_ed25519.pub)" --mode 600
opsctl shell-exec --host web1 --cmd "systemctl reload sshd" --mode auto

⚠️ Before a working public key is deployed, never run PasswordAuthentication no (it locks you out). The engine cannot verify whether the public key is already effective; it only warns on PasswordAuthentication no — the deploy order is the operator's responsibility.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.