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.

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.

agentmods
npx agentmods add skills/sfc-gh-eraigosa/dotfiles/ssh-key-sync
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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00012 $0.00264
Sonnet 5 $0.00005 $0.00106
Haiku 4.5 $0.00002 $0.00053

Measured 6d ago against content hash 32d44f186459, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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. 6d 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 (46 stars, last pushed today), licensed Apache-2.0. It adds 23 tokens to every session and 529 once invoked, about $0.0001 per session on Opus 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

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 and prompts for the Jira ticket number.

fredrikaverpil/dotfiles · 43 tokens

gh-cli

../../../.claude/skills/gh-cli/SKILL.md.

fredrikaverpil/dotfiles · 0 tokens

gh-pr

../../../.claude/skills/gh-pr/SKILL.md.

fredrikaverpil/dotfiles · 0 tokens

churn-prevention

When the user wants to reduce churn, build cancellation flows, set up save offers, recover failed payments, or implement retention strategies. Also use when the user mentions 'churn,' 'cancel flow,' 'offboarding,' 'save offer,' 'dunning,' 'failed payment recovery,' 'win-back,' 'retention,' 'exit survey,' 'pause…

freekmurze/dotfiles · 140 tokens

marketing-psychology

When the user wants to apply psychological principles, mental models, or behavioral science to marketing. Also use when the user mentions 'psychology,' 'mental models,' 'cognitive bias,' 'persuasion,' 'behavioral science,' 'why people buy,' 'decision-making,' or 'consumer behavior.' This skill provides 70+ mental…

freekmurze/dotfiles · 79 tokens