ssh-key-sync

ssh-key-sync is a skill for Claude Code, Codex from sfc-gh-eraigosa/dotfiles. It costs 23 tokens per session (529 once invoked), scanned B, original, Apache-2.0.

A tool for managing SSH keys, which authenticate you to remote computers, across the hosts listed in your SSH configuration.

In plain words
What is it for?
Use it to generate Ed25519 keys, distribute them to configured hosts, keep SSH settings consistent, review key status, and securely delete or revoke keys.
Why use it?
It removes the need to create, copy, check, and revoke keys separately on each computer, while showing where managed keys are authorized.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to generate Ed25519 keys, distribute them to configured hosts, keep SSH settings consistent, review key status, and securely delete or revoke keys.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sfc-gh-eraigosa/dotfiles/ssh-key-sync
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sfc-gh-eraigosa/dotfiles --skill ssh-key-sync
Clone the repo
git clone --depth 1 https://github.com/sfc-gh-eraigosa/dotfiles

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ssh-key-sync

README.md
[![agentmods](https://agentmods.dev/badge/skills/sfc-gh-eraigosa/dotfiles/ssh-key-sync/github.svg)](https://agentmods.dev/skills/sfc-gh-eraigosa/dotfiles/ssh-key-sync)
Your own site
<a href="https://agentmods.dev/skills/sfc-gh-eraigosa/dotfiles/ssh-key-sync"><img src="https://agentmods.dev/badge/skills/sfc-gh-eraigosa/dotfiles/ssh-key-sync/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ssh-key-sync

Your own site · 80×15
<a href="https://agentmods.dev/skills/sfc-gh-eraigosa/dotfiles/ssh-key-sync"><img src="https://agentmods.dev/badge/skills/sfc-gh-eraigosa/dotfiles/ssh-key-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 529 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 14
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • medium Excessive Agency · line 22
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.00529
Opus 5.5 $0.00009 $0.00212
Sonnet 5.5 $0.00005 $0.00106
Haiku 4.5 $0.00002 $0.00053

Measured 1mo ago against content hash 32d44f186459, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

ssh-key-sync scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (ssh-key-sync.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reaches for credential filesmediumPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

- **Authorize keys**: Appends the new public key to `~/.ssh/authorized_keys` on the local machine and remote hosts.

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

src/ssh-key-sync/SKILL.md · 51 lines

How it starts

The opening of the file, as written. The whole thing — 51 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SSH Key Sync Skill

This skill allows for managing SSH keys across a network, including generation, synchronization, status reporting, and secure deletion.

Capabilities

1. Generate and Sync Keys

  • Generate a new key pair: Automatically creates a new Ed25519 key with a unique name.
  • Optional Distribute: Copies the new private/public keys to all hosts in ~/.ssh/config unless --no-sync is specified.
  • Authorize keys: Appends the new public key to ~/.ssh/authorized_keys on the local machine and remote hosts.
  • Sync Config: Ensures the ~/.ssh/config file is consistent across all hosts during synchronization.

2. List Key Status

  • Management Table: Generates a table showing all managed keys, their types, and which hosts (local/remote) have them authorized.

3. Delete/Cleanup Keys

  • Secure Deletion: Removes specified keys from the local machine and all remote hosts.
  • Revoke Authorization: Automatically removes the public key entries from authorized_keys files locally and remotely to ensure the keys can no longer be used.

Usage

Direct Execution

You can run the script directly:

# Generate and sync to all hosts
~/git/dotfiles/src/ssh-key-sync/ssh-key-sync.sh <key_name>

# Generate locally only
~/git/dotfiles/src/ssh-key-sync/ssh-key-sync.sh --no-sync <key_name>

# List all keys and their sync status
~/git/dotfiles/src/ssh-key-sync/ssh-key-sync.sh --list

# Delete one or more keys
~/git/dotfiles/src/ssh-key-sync/ssh-key-sync.sh --delete <key_name1> <key_name2>

Natural Language Instructions

  • "Show me a table of all my SSH keys."
  • "Generate a new key called 'temp-key' and sync it."
  • "Clean up the test keys 'id_ed25519_new' and 'local_test_key' across all my hosts."

Workflow

  1. Research: The skill identifies the user's intent (generate, sync, list, or delete).
  2. Action: It executes ssh-key-sync.sh with the appropriate flags and key names.
  3. Verification: It confirms the success of the requested management action.

Read the full file on GitHub · 51 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 51 lines · 23 tokens per session scan B 32d44f186459

Subscribe to this mod's changes

ssh-key-sync is a skill published in the GitHub repository sfc-gh-eraigosa/dotfiles (50 stars, last pushed yesterday), licensed Apache-2.0. It adds 23 tokens to every session and 529 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

macos-release

Release a native macOS app to GitHub with DMG packaging and Sparkle appcast updates. Use this skill whenever the user wants to publish a new version, create a release, ship an update, push a release to GitHub, or update the appcast. Also trigger when the user mentions DMG creation, Sparkle signing, notarization…

freekmurze/dotfiles · 132 tokens

review-pr

Review and merge GitHub pull requests for Spatie packages. Use when asked to review a PR, review a pull request, merge a PR, or when given a GitHub PR URL to review. Also triggers on 'review this PR,' 'check this pull request,' 'merge this,' or '/review-pr'. Uses gh CLI for all GitHub operations.

freekmurze/dotfiles · 75 tokens

git-commit

This skill should be used BEFORE running any git commit command. Triggers when about to run git commit. Ensures commit messages follow Conventional Commits specification.

fredrikaverpil/dotfiles · 36 tokens

gh-cli

GitHub CLI (gh) conventions and the inline PR review recipe. Use when working with GitHub repositories, PRs, issues, actions, gh api, or any GitHub operations from the command line.

fredrikaverpil/dotfiles · 46 tokens

gh-pr

This skill should be used when creating a GitHub pull request via gh pr create. Covers the gh CLI mechanics; PR title and body conventions come from the pr-style skill.

fredrikaverpil/dotfiles · 39 tokens

product-launch-video

Turn a product or marketing URL, pasted script, or brief into a product launch / promo video — SaaS promos, feature reveals, product demos, app and company launches. Use when the user wants to market, launch, promote, or reveal a product; the default for any commercial URL. Site tours / showcases of a website route…

freekmurze/dotfiles · 91 tokens