setup-ssh

setup-ssh is a command for Claude Code from CallMeTechie/fleet-manager. It costs 23 tokens per session (1,162 once invoked), scanned B, original, MIT.

A setup command that creates a dedicated SSH key and prepares it for password-free login to a server. It asks for connection details when no server profile exists and can be run again safely.

In plain words
What is it for?
Use it when onboarding a server to the fleet manager and setting up SSH access for its commands.
Why use it?
It avoids repeatedly entering a server password and prevents an existing key from being overwritten. It also keeps the server connection details recorded for later use.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the fleet-manager plugin — 1 skill, 17 commands, 1 agent shipped together

Good fit Use it when onboarding a server to the fleet manager and setting up SSH access for its commands.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add CallMeTechie/fleet-manager
Claude Code
/plugin install fleet-manager

Made for: Claude Code.

Or install fleet-manager, the plugin that ships this one along with the rest of its 1 skill, 17 commands, 1 agent.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/callmetechie/fleet-manager/setup-ssh/github.svg)](https://agentmods.dev/commands/callmetechie/fleet-manager/setup-ssh)
Your own site
<a href="https://agentmods.dev/commands/callmetechie/fleet-manager/setup-ssh"><img src="https://agentmods.dev/badge/commands/callmetechie/fleet-manager/setup-ssh/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 setup-ssh

Your own site · 80×15
<a href="https://agentmods.dev/commands/callmetechie/fleet-manager/setup-ssh"><img src="https://agentmods.dev/badge/commands/callmetechie/fleet-manager/setup-ssh.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 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,162 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.
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.01162
Opus 5.5 $0.00009 $0.00465
Sonnet 5.5 $0.00005 $0.00232
Haiku 4.5 $0.00002 $0.00116

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

Security

Grade B, and why

setup-ssh 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 3mo 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.

Asks for rootmediumPrivilege escalation

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

chmod 600 "$KEY"
plugin/commands/setup-ssh.md · 109 lines

How it starts

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

Setup SSH

Establish passwordless key auth to a server using the plugin-dedicated keypair. Idempotent — re-running on a configured server is a no-op.

Anti-Pattern Rule (do not violate)

Never invoke ssh-copy-id from this command via the Bash tool. It hangs without a TTY. Only the user-typed !-prefix allocates a PTY for password entry. This command's job is to present the ssh-copy-id line as copyable text.

Steps

1. Resolve target + connection details

set -euo pipefail
source "${CLAUDE_PLUGIN_ROOT:-plugin}/commands/_fleet-lib.sh"
NAME="$(resolve_server "$(printf '%s' "$ARGUMENTS" | tr -d '[:space:]')")"

If resolve_server fails (no profile yet), ask via AskUserQuestion for: server name, host, port (default 22), user. Validate host ^[a-zA-Z0-9.-]+$, port 1–65535, user ^[a-zA-Z0-9_.-]+$. Write the Connection section of context/servers/<name>.md first (Concern 6 — profile exists before key deploy), using the EXAMPLE.md.template as the base.

2. Ensure the plugin keypair exists (never overwrite)

KEY="$HOME/.ssh/fleet-manager_ed25519"
if [ ! -f "$KEY" ]; then
  ssh-keygen -t ed25519 -N "" -f "$KEY" -C "fleet-manager@$(hostname)"
  chmod 600 "$KEY"
fi

3. Test key auth (cold)

build_ssh "$NAME"
if "${FM_SSH[@]}" "echo OK" 2>/dev/null | grep -qx OK; then
  echo "Key auth already works for $NAME."; exit 0
fi

Host key (first connection): the plugin keeps the OpenSSH default for host-key checking (it does not auto-trust). With BatchMode=yes there is no interactive prompt, so a host whose key is not yet in ~/.ssh/known_hosts makes this cold test fail. Establish it once, out of band, after reviewing the fingerprint: ssh-keyscan -p <port> <host> >> ~/.ssh/known_hosts (or connect once interactively and accept the key). Intentional — it blocks a silent man-in-the-middle on an unknown host.

4. Present the deployment instruction (copy-paste, not auto-run)

Each bash block runs in its own subshell, so FM_* from step 3 is gone here. Re-load the profile and print the exact command so you substitute real values (never guess host/port):

Read the full file on GitHub · 109 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. 3mo ago First seen · 109 lines · 23 tokens per session scan B efb95b477409

Subscribe to this mod's changes

setup-ssh is a command published in the GitHub repository CallMeTechie/fleet-manager (1 stars, last pushed 3mo ago), licensed MIT. It adds 23 tokens to every session and 1,162 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

setup-ssh compared with commands from other repositories

setup-ssh next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
setup-sshCallMeTechie/fleet-managerCommand13mo agoMITB23Claude Code
marina-serverThe-Focus-AI/marina-skillCommand29mo agononeA15Claude Code
marina-statusThe-Focus-AI/marina-skillCommand29mo agononeA14Claude Code
platformgotempsh/tempsCommand953todayApache-2.0A0Claude Code
deliverygotempsh/tempsCommand953todayApache-2.0A0Claude Code
tunnelsgotempsh/tempsCommand953todayApache-2.0A0Claude Code
delivery-profilesgotempsh/tempsCommand953todayApache-2.0A0Claude Code