ssh-mcp-helper

ssh-mcp-helper is a skill for Claude Code, Codex from classfang/ssh-mcp-server. It costs 110 tokens per session (2,353 once invoked), scanned A, original, ISC.

A setup guide for connecting an AI coding client to remote computers through SSH, a standard way to securely log in to another machine.

In plain words
What is it for?
It helps install or configure an SSH MCP server, choose authentication and transport settings, restrict commands, generate configuration, and add it to supported clients.
Why use it?
It gathers the connection and security settings needed for the setup and reduces errors when adding remote hosts to the client's configuration.

Skill for Claude CodeCodex

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/classfang/ssh-mcp-server/ssh-mcp-helper
Any agent
npx skills add classfang/ssh-mcp-server --skill ssh-mcp-helper
Clone the repo
git clone --depth 1 https://github.com/classfang/ssh-mcp-server

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-mcp-helper

README.md
[![agentmods](https://agentmods.dev/badge/skills/classfang/ssh-mcp-server/ssh-mcp-helper.svg)](https://agentmods.dev/skills/classfang/ssh-mcp-server/ssh-mcp-helper)
Your own site
<a href="https://agentmods.dev/skills/classfang/ssh-mcp-server/ssh-mcp-helper"><img src="https://agentmods.dev/badge/skills/classfang/ssh-mcp-server/ssh-mcp-helper.svg" alt="Measured on agentmods" height="20"></a>
Per session 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,353 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00110 $0.02353
Opus 5 $0.00055 $0.01177
Sonnet 5 $0.00022 $0.00471
Haiku 4.5 $0.00011 $0.00235

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

Security

Grade A, and why

ssh-mcp-helper scanned grade A with 0 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

skills/ssh-mcp-helper/SKILL.md · 167 lines

How it starts

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

ssh-mcp-helper

概述

帮助用户通过交互式问答完成 @fangjunjie/ssh-mcp-server 的安装预检与 MCP 客户端配置。技能本身不代替用户输入凭据,而是逐项确认认证方式、连接参数与安全策略,最终产出可直接写入 MCP 客户端配置文件的 mcpServers JSON 片段。

核心准则: 所有可枚举的选项(MCP 客户端类型、认证方式、传输模式、是/否开关)必须使用 AskUserQuestion 让用户选择;只有不可枚举的输入(host、用户名、私钥路径、密码、自定义白名单正则等)才允许自由文本提问。

何时使用

  • 用户明确要安装/配置/新增 ssh-mcp-server
  • 用户提到为 Cursor / Claude Code / Cline / Continue 等客户端添加 SSH MCP
  • 用户希望在已有 mcpServers 中追加一台 SSH 主机
  • 用户问「ssh-mcp-server 的 mcp.json 怎么写」

何时不使用

  • 用户要修改 ssh-mcp-server 源码 → 直接编辑代码,不进入向导
  • 用户只是想跑某条 SSH 命令 → 直接调用已存在的 ssh-mcp-server 工具
  • 用户在问 SSH 协议本身的概念 → 解释即可,无需走流程

工作流程

digraph ssh_mcp_helper {
    "0. 前置环境检查" [shape=box];
    "1. 选择 MCP 客户端" [shape=box];
    "2. 单台 vs 多台" [shape=diamond];
    "3. 选择认证方式" [shape=box];
    "4. 询问连接参数" [shape=box];
    "5. 询问高级选项" [shape=box];
    "6. 生成 JSON 片段" [shape=box];
    "7. 合并写入配置" [shape=box];
    "8. 提示重启与验证" [shape=doublecircle];

    "0. 前置环境检查" -> "1. 选择 MCP 客户端";
    "1. 选择 MCP 客户端" -> "2. 单台 vs 多台";
    "2. 单台 vs 多台" -> "3. 选择认证方式" [label="单台"];
    "2. 单台 vs 多台" -> "3. 选择认证方式" [label="多台 → 写 ssh-config.json"];
    "3. 选择认证方式" -> "4. 询问连接参数";
    "4. 询问连接参数" -> "5. 询问高级选项";
    "5. 询问高级选项" -> "6. 生成 JSON 片段";
    "6. 生成 JSON 片段" -> "7. 合并写入配置";
    "7. 合并写入配置" -> "8. 提示重启与验证";
}

Step 0:前置环境检查

  • 运行 node -vnpx --version 确认本机有 Node.js(推荐 v18+)
  • 缺失则先提示用户安装 Node.js,再继续后续步骤

Step 1:选择 MCP 客户端(AskUserQuestion 多选一)

客户端 默认配置位置
Claude Code(全局) ~/.claude.jsonmcpServers 字段
Claude Code(项目级) 项目根 .mcp.json
Cursor ~/.cursor/mcp.json
Cline / Continue / 其他 让用户提供具体路径

Step 2:单台 vs 多台(AskUserQuestion 二选一)

  • 单台:直接使用命令行参数(--host 等)
  • 多台:生成 ssh-config.json 并使用 --config-file

Step 3:选择认证方式(AskUserQuestion 多选一)

  • password — 账号 + 密码
  • privateKey — 账号 + 私钥;再用 AskUserQuestion 确认是否带 passphrase
  • ssh-config — 复用 ~/.ssh/config 中的 Host 别名(只需 --host <alias>,可选 --ssh-config-file
  • ssh-agent — 使用 --agent 指向 socket
  • 2fa — 密码 + 私钥 + 键盘交互,追加 --try-keyboard

Read the full file on GitHub · 167 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 · 167 lines · 110 tokens per session scan A f93a31bf4fd1

Subscribe to this mod's changes

ssh-mcp-helper is a skill published in the GitHub repository classfang/ssh-mcp-server (828 stars, last pushed 11d ago), licensed ISC. It adds 110 tokens to every session and 2,353 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. 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

agent-platform-tuning

Agent Platform Model Tuning. Use when you need to fine-tune open models or Gemini models using Agent Platform infrastructure. Don't use for model training outside Agent Platform, model deployment to endpoints (use agent-platform-deploy), or managing serving endpoints (use agent-platform-endpoint-management).

google/skills · 64 tokens

application-design-center-design-deploy

Processes GCP infrastructure design and deployment workflows within Application Design Center (ADC). Use when: - Designing GCP infrastructure with Terraform. - Validating local HCL. - Performing best-practice plan scans. - Importing templates to Application Design Center (ADC). - Deploying templates. - Troubleshooting…

google/skills · 94 tokens

interactive-login

How to complete browser/interactive logins (aws / gh / glab / gcloud). The platform backgrounds the login poller so it survives the human's browser round-trip — and when that does NOT work.

yc-software/qm · 46 tokens

azure-mgmt-botservice-dotnet

Azure Resource Manager SDK for Bot Service in .NET. Management plane operations for creating and managing Azure Bot resources, channels (Teams, DirectLine, Slack), and connection settings. Triggers: "Bot Service", "BotResource", "Azure Bot", "DirectLine channel", "Teams channel", "bot management .NET", "create bot".

microsoft/skills · 78 tokens

cloud-architect

Designs cloud architectures, creates migration plans, generates cost optimization recommendations, and produces disaster recovery strategies across AWS, Azure, and GCP. Use when designing cloud architectures, planning migrations, or optimizing multi-cloud deployments. Invoke for Well-Architected Framework, cost…

Jeffallan/claude-skills · 71 tokens

azmon-mirroredcatalogs-operations-cli

Brings Azure Monitor, Application Insights, and Log Analytics telemetry into Fabric as Eventhouse external delta tables and correlates it with business data. Use to onboard observability data, judge whether latency or availability affected revenue, or build a Real-Time dashboard and Operations Agent over it.

microsoft/skills-for-fabric · 66 tokens