do-ssh-setup

do-ssh-setup is a command for coding agents from iamnolanhu/digitalocean-skills. It costs 20 tokens per session (1,153 once invoked), scanned D, original, MIT.

An interactive setup command for SSH keys, which are secure credentials used to log in to servers without a password. It checks keys on your computer and keys uploaded to DigitalOcean.

In plain words
What is it for?
Use it to prepare SSH access to DigitalOcean servers, upload an existing key, or generate a new key.
Why use it?
It helps identify missing keys and guides you through reusing an existing key or creating one for accessing DigitalOcean Droplets.

Command

Part of the digitalocean-skills plugin — 9 skills, 6 commands, 3 agents, 1 hook shipped together

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 commands/iamnolanhu/digitalocean-skills/do-ssh-setup
Clone the repo
git clone --depth 1 https://github.com/iamnolanhu/digitalocean-skills

Or install digitalocean-skills, the plugin that ships this one along with the rest of its 9 skills, 6 commands, 3 agents, 1 hook.

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 do-ssh-setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/iamnolanhu/digitalocean-skills/do-ssh-setup.svg)](https://agentmods.dev/commands/iamnolanhu/digitalocean-skills/do-ssh-setup)
Your own site
<a href="https://agentmods.dev/commands/iamnolanhu/digitalocean-skills/do-ssh-setup"><img src="https://agentmods.dev/badge/commands/iamnolanhu/digitalocean-skills/do-ssh-setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,153 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 2 findings. 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 $0.00020 $0.01153
Opus 5 $0.00010 $0.00576
Sonnet 5 $0.00004 $0.00231
Haiku 4.5 $0.00002 $0.00115

Measured 5d ago against content hash 9ba3b139dd5f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade D, and why

do-ssh-setup scanned grade D with 2 findings 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 5d ago.

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.

Enumerates the file system for secretshighData exfiltration

Searching home directories for .env, .ssh, .aws or credential files is reconnaissance for credential theft.

ls -la ~/.ssh/*.pub 2>/dev/null || echo " (none found)"

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

chmod 600 ~/.ssh/do-skills-master
commands/do-ssh-setup.md · 205 lines

How it starts

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

SSH Setup for DigitalOcean

Set up SSH keys for secure Droplet access.

Interactive Flow

Guide the user through SSH key configuration with these steps:

Step 1: Check Existing SSH Keys

echo "=== Checking for existing SSH keys ==="

# User's existing keys
echo -e "\nYour SSH keys:"
ls -la ~/.ssh/*.pub 2>/dev/null || echo "  (none found)"

# DigitalOcean Skills keys
echo -e "\nDigitalOcean Skills keys:"
ls -la ~/.ssh/do-skills-*.pub 2>/dev/null || echo "  (none found)"
ls -la ~/.config/digitalocean-skills/keys/*.pub 2>/dev/null || echo "  (no per-Droplet keys)"

Step 2: Check DigitalOcean Account

Query keys already uploaded to DO:

ssh-key-list

Display in format:

Keys in your DigitalOcean account:
  - name: my-laptop (fingerprint: ab:cd:ef:...)
  - name: do-skills-master (fingerprint: 12:34:56:...)

Step 3: Decision Tree

If user has existing keys but none uploaded to DO:

Found SSH keys on your machine:
  - id_ed25519
  - id_rsa

Would you like to:
  1. Upload an existing key to DigitalOcean
  2. Generate a new do-skills-master key (recommended)

If user has no SSH keys:

No SSH keys found on your machine.

I'll create a do-skills-master key for you. This key will be used for all
DigitalOcean Droplets provisioned through this plugin.

If do-skills-master already exists locally:

Found existing do-skills-master key.

Checking if it's uploaded to DigitalOcean...

Step 4: Ask Passphrase Preference

Before generating, ask:

Passphrase Options:
─────────────────────

1. No passphrase (Recommended)
   - Best for: automation, CI/CD, personal dev machines
   - Trade-off: Key file alone grants access

2. With passphrase
   - Best for: shared machines, production access
   - Requires: ssh-agent setup to avoid typing it repeatedly

Which do you prefer? [1/2]

Step 5: Generate Key (if needed)

# Without passphrase (option 1)
ssh-keygen -t ed25519 -f ~/.ssh/do-skills-master -N "" -C "do-skills-master"

# With passphrase (option 2) - prompts for passphrase
ssh-keygen -t ed25519 -f ~/.ssh/do-skills-master -C "do-skills-master"

# Verify permissions
chmod 600 ~/.ssh/do-skills-master
chmod 644 ~/.ssh/do-skills-master.pub

echo "Created ~/.ssh/do-skills-master"

Read the full file on GitHub · 205 lines

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. 5d ago First seen · 205 lines · 20 tokens per session scan D 9ba3b139dd5f

Subscribe to this mod's changes

do-ssh-setup is a command published in the GitHub repository iamnolanhu/digitalocean-skills (4 stars, last pushed 7mo ago), licensed MIT. It adds 20 tokens to every session and 1,153 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it D with 2 findings (enumerates the file system for secrets, asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.