ssh

ssh is a skill for Claude Code from kochetkov-ma/claude-brewcode. It costs 19 tokens per session (5,714 once invoked), scanned D, original, MIT.

A set of instructions for using SSH, a secure way to connect to and manage Linux servers over a network.

In plain words
What is it for?
Connecting to servers, changing their configuration, deploying software, and administering Linux systems.
Why use it?
It helps handle remote server work with safety checks before potentially risky changes.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; reads .claude/ paths; mentions .claude-plugin.

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 brewtools plugin — 9 skills, 3 agents shipped together

Good fit Connecting to servers, changing their configuration, deploying software, and administering Linux systems.

Compare 6 skills 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 kochetkov-ma/claude-brewcode
Claude Code
/plugin install brewtools

Made for: Claude Code.

Or install brewtools, the plugin that ships this one along with the rest of its 9 skills, 3 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/kochetkov-ma/claude-brewcode/ssh/github.svg)](https://agentmods.dev/skills/kochetkov-ma/claude-brewcode/ssh)
Your own site
<a href="https://agentmods.dev/skills/kochetkov-ma/claude-brewcode/ssh"><img src="https://agentmods.dev/badge/skills/kochetkov-ma/claude-brewcode/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 ssh

Your own site · 80×15
<a href="https://agentmods.dev/skills/kochetkov-ma/claude-brewcode/ssh"><img src="https://agentmods.dev/badge/skills/kochetkov-ma/claude-brewcode/ssh.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,714 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 2 findings. 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.00019 $0.05714
Opus 5.5 $0.00008 $0.02286
Sonnet 5.5 $0.00004 $0.01143
Haiku 4.5 $0.00002 $0.00571

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

Security

Grade D, and why

ssh 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 1mo ago.

The scan reads SKILL.md. This mod also ships 9 executable files (scripts/claude-local-ops.sh, scripts/detect-mode.sh, scripts/server-discover.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.

Asks for rootmediumPrivilege escalation

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

`~/.config/brewtools/ghcr.token` (recommended; `chmod 600`) or `GHCR_TOKEN`

Reaches for credential fileshighPrivilege escalation

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

ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519_SERVERNAME -N "" -C "claude@SERVERNAME" && echo "OK keygen" || { rc=$?; echo "FAILED keygen" >&2; exit "$rc"; }
brewtools/skills/ssh/SKILL.md · 462 lines

How it starts

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

SSH Server Management

Prompt contract

$ARGUMENTS is one free-form RU/EN prompt; mode tokens may sit anywhere in it. This skill has no mutate-vs-read-only flags — every mode can end up running commands, gated by Phase 5 Step 3's own MODIFY/SERVICE/DELETE/PRIVILEGE confirmation.

  1. Mode: an explicit mode token wins outright (operations table in Phase 0 below); else the most distinct whole-word keyword hits. Equal highest scores/conflicting explicit modes -> ask before actions, never guess a mutation. No hit -> execute, letting Phase 5's own command classification gate any mutation. Empty -> setup if no servers are configured, else execute (Phase 1 asks which server). Never a hardcoded default independent of that check.
  2. Scope: prose that is not a mode keyword is still input: take the host, server alias or command intent from it, never the first word of a sentence as a positional id.
  3. Ask: outcome-changing ambiguity (which server, DELETE/PRIVILEGE commands) -> AskUserQuestion before any work — this is Phase 1/5's own gate, not a new one.

Print once, at the end of Phase 1 — once mode AND server (default/asked/newly-set-up) are both resolved, before branching into Phase 2/3/5 (labels and plan values English, INPUT verbatim):

PLAN — brewtools:ssh
INPUT:  <arguments verbatim, or "(empty)">
MODE:   <resolved> — <explicit | matched keyword: X | default>
SCOPE:  <resolved paths / target / level / flags>
DO:     <2-5 imperative bullets>
RESULT: <what the user ends up holding>

Robustness Rules (all phases)

Rule Limit / scope
Bash calls report OK/FAILED, keep non-zero status: && echo "OK ..." || { rc=$?; echo "FAILED ..." >&2; exit "$rc"; } all scripts; discovery's documented 124 captured separately
SSH options -o ConnectTimeout=10 -o BatchMode=yes every SSH call
FAILED -> stop the phase, report; never retry the same command blindly. Script non-zero -> read stderr, fix root cause, retry ONCE all phases; scripts
Retries per failed operation max 2, then report and stop
Phase 2 key attempts max 3, then ask the user
Re-entries into Phase 2 max 1, then stop and report
Phase 5 SSH commands per invocation max 5; more -> delegate (Phase 5 Step 4)
SSH calls per invocation max 15, then stop, report progress, suggest manual continuation
update-agent servers per run max 3; report the rest
AskUserQuestion max 3 per phase; combine missing info into one question
SSH connection test 10s (ConnectTimeout=10) -> "Server unreachable", stop
Single SSH command 60s via ght 60 ssh ... (watchdog from deploy-common.sh, Phase 5 Step 4; ght_reason tells timeout, missing tool, failure apart) -> kill, report "Command timed out", ask the user. Never assume stock macOS has bare timeout

Read the full file on GitHub · 462 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. 1mo ago Changed · +1 lines 6e38d4f5c237
  2. 1mo ago Changed · -5 lines 09a285d1a3a7
  3. 1mo ago Changed · -169 lines 0c4aec162cb9
  4. 2mo ago Changed · +5 lines be0165245648
  5. 3mo ago First seen · 630 lines · 19 tokens per session scan D 42c328cbd222

Subscribe to this mod's changes

ssh is a skill published in the GitHub repository kochetkov-ma/claude-brewcode (41 stars, last pushed yesterday), licensed MIT. It adds 19 tokens to every session and 5,714 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it D with 2 findings (asks for root, reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

ssh compared with skills from other repositories

ssh next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sshkochetkov-ma/claude-brewcodeSkill41yesterdayMITD19Claude Code
infrastructure-planninglukaskellerstein/claude-my-marketplaceSkill312d agononeA64Claude Code
istiolukaskellerstein/claude-my-marketplaceSkill312d agononeA0Claude Code
kuberneteslukaskellerstein/claude-my-marketplaceSkill312d agononeA0Claude Code
authlukaskellerstein/claude-my-marketplaceSkill312d agononeA48Claude Code
terraformlukaskellerstein/claude-my-marketplaceSkill312d agononeA0Claude Code
traefiklukaskellerstein/claude-my-marketplaceSkill312d agononeA0Claude Code