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.
npx agentmods add skills/ibook000/ibook-skill/ssh-skillnpx skills add Ibook000/ibook-skill --skill ssh-skillgit clone --depth 1 https://github.com/Ibook000/ibook-skillWrote 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.
[](https://agentmods.dev/skills/ibook000/ibook-skill/ssh-skill)<a href="https://agentmods.dev/skills/ibook000/ibook-skill/ssh-skill"><img src="https://agentmods.dev/badge/skills/ibook000/ibook-skill/ssh-skill.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00171 | $0.04831 |
| Opus 5 | $0.00086 | $0.02416 |
| Sonnet 5 | $0.00034 | $0.00966 |
| Haiku 4.5 | $0.00017 | $0.00483 |
Grade C, and why
ssh-skill scanned grade C 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 3d 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.
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.
IdentityFile ~/.ssh/id_rsa How it starts
The opening of the file, as written. The whole thing — 475 lines — stays where its author put it; the contents beside it link to each section on GitHub.
SSH Skill v3.3.1
高性能 SSH 操作技能,支持守护进程长连接、自动连接复用、跳板机、批量并发、服务器间直接传输、自动错误恢复。
快捷命令
当用户通过 /ssh-skill <参数> 调用本 skill 时,根据参数执行对应操作:
/ssh-skill list
列出所有已配置的服务器。执行以下步骤:
- 运行命令获取数据:
python ~/.claude/skills/ssh-skill/scripts/ssh_config_manager_v3.py list-servers
- 解析返回的 JSON 数据
- 以 Markdown 表格 格式展示,列:序号、别名、备注(description)、标签(tags)、位置(location)、认证方式(auth)、用户名(user)
- 在表格末尾显示服务器总数
表格示例格式:
| # | 别名 | 备注 | 标签 | 位置 | 认证 | 用户名 |
|---|------|------|------|------|------|--------|
| 1 | mgmt-01 | 管理服务器 | 管理,Warpgate | 丰台机房 | 密钥 | root |
/ssh-skill find <关键词>
查找匹配的服务器,格式同 list。
/ssh-skill help
展示 SSH Skill 的帮助文档。以 Markdown 格式输出以下内容:
SSH Skill v3.3.1 - 高性能 SSH 操作技能
核心特点:
- 守护进程长连接:首次连接后自动启动守护进程,后续命令响应时间从 ~0.45s 降至 ~0.12s
- 自动连接复用:多个 Claude Code 实例可共享同一守护进程
- SFTP 高级传输:支持断点续传、进度显示、目录递归上传/下载
- 服务器间直接传输:支持服务器到服务器的文件直接传输,无需本地中转
- SSH 隧道:支持本地端口转发,访问远程内网服务(数据库、Web 服务等)
- 跳板机支持:通过 ProxyJump 自动处理多级跳板机
- 批量并发操作:支持对多台服务器并发执行命令
- 自动错误恢复:SSH 连接断开自动重连(最多 3 次)
快捷命令:
/ssh-skill list- 列出所有已配置的服务器/ssh-skill find <关键词>- 查找匹配的服务器/ssh-skill transfer <源> <源路径> <目标> <目标路径>- 服务器间文件传输/ssh-skill tunnel <别名> <端口>- 启动 SSH 隧道/ssh-skill help- 显示此帮助信息
常用操作:
-
执行远程命令:
在 <别名> 上执行 <命令> -
上传文件:
上传 <本地路径> 到 <别名> 的 <远程路径> -
下载文件:
从 <别名> 下载 <远程路径> 到 <本地路径> -
服务器间传输:
从 <源别名> 传输 <路径> 到 <目标别名> 的 <路径> 将 <别名A> 的文件迁移到 <别名B> -
SSH 隧道:
建立到 <别名> 的 MySQL 隧道 连接 <别名> 的数据库 访问 <别名> 的内部服务 -
批量操作:
在所有服务器上执行 <命令> 在生产环境服务器上执行 <命令>
配置管理:
- 配置文件位置:
~/.ssh/config - 使用标准 OpenSSH 格式 + 注释元数据
- 支持密钥认证和密码认证
- 支持 ProxyJump 跳板机配置
性能对比:
- 直连模式:单次命令 ~0.45s,连续 10 条 ~4.5s
- 守护进程模式:单次命令 ~0.12s,连续 10 条 ~1.2s
更多详细信息请参考 SKILL.md 文档。
其他参数
将参数作为用户意图理解,按照下方调用规则执行对应的 SSH 操作。
CRITICAL: 调用规则
路径说明
默认路径:~/.claude/skills/ssh-skill/scripts
~会自动展开为用户家目录(Windows 和 Linux 通用)- Windows:
C:\Users\用户名\.claude\skills\ssh-skill\scripts - Linux:
/home/用户名/.claude/skills/ssh-skill/scripts
What ships with it
48 files 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.
- examples/basic_usage.py 1.3 KB runs code
- examples/concurrency_examples.py 578 B runs code
- examples/config_env_development.json 890 B
- examples/config_env_production.json 1.1 KB
- examples/config_jump_double.json 1.2 KB
- examples/config_jump_password.json 726 B
- examples/config_jump_simple.json 641 B
- examples/config_jump_single_key.json 967 B
- examples/config_key_with_passphrase.json 823 B
- examples/config_multi_servers.json 1.6 KB
- examples/config_single_key.json 745 B
- examples/config_single_password.json 705 B
- examples/config_template.json 1.3 KB
- examples/config_temporary_access.json 907 B
- examples/config_usage_examples.py 917 B runs code
- examples/interactive_session_examples.py 1.0 KB runs code
- examples/jumphost_usage_examples.py 934 B runs code
- examples/README.md 2.3 KB
- examples/run_smoke_tests.ps1 1.4 KB runs code
- examples/test_controlmaster.py 2.8 KB runs code
- README_EN.md 12 KB
- README.md 11 KB
- scripts/add_comments_to_config.py 5.2 KB runs code
- scripts/deploy_pubkey.py 4.2 KB runs code
- scripts/fix_ssh_config.py 9.9 KB runs code
- scripts/get_system_info.sh 644 B runs code
- scripts/lib/__init__.py 1.2 KB runs code
- scripts/lib/cluster.py 7.2 KB runs code
- scripts/lib/config_v3.py 9.5 KB runs code
- scripts/lib/native_ssh_client.py 12 KB runs code
- scripts/lib/native_ssh_fallback.py 12 KB runs code
- scripts/lib/paramiko_client.py 40 KB runs code
- scripts/lib/sftp_transfer.py 19 KB runs code
- scripts/lib/utils.py 2.8 KB runs code
- scripts/lib/validation.py 2.6 KB runs code
- scripts/lib/windows_ssh_agent.py 8.7 KB runs code
- scripts/migrate_to_key_auth.py 4.4 KB runs code
- scripts/migrate_to_ssh_config.py 14 KB runs code
- scripts/ssh_cluster.py 4.0 KB runs code
- scripts/ssh_config_manager_v3.py 35 KB runs code
- scripts/ssh_daemon.py 18 KB runs code
- scripts/ssh_download.py 6.1 KB runs code
- scripts/ssh_execute.py 7.8 KB runs code
- scripts/ssh_key_manager.py 26 KB runs code
- scripts/ssh_server_transfer.py 23 KB runs code
- scripts/ssh_tunnel.py 24 KB runs code
- scripts/ssh_upload.py 6.9 KB runs code
- scripts/update_server_info.py 5.6 KB runs code
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.
- 3d ago First seen · 475 lines · 171 tokens per session scan C f8d27b23c0b2
ssh-skill is a skill published in the GitHub repository Ibook000/ibook-skill (2 stars, last pushed 4d ago), licensed MIT. It adds 171 tokens to every session and 4,831 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it C 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-31.
Other skills, from other repositories
mass-line
触发:当你需要收集多方意见、把零散反馈整合成可执行方案,或把方案带回真实使用者/执行者验证时调用;常见信号包括 stakeholder input、user feedback、意见汇总、对齐与验证。 English: Trigger when input must be gathered from many people, synthesized into a clearer plan, and returned to the affected users or executors for validation. Use this skill for a collect-synthesize-validate loop.
workflows
触发:当你面临的任务明显需要多个思想武器协作时调用;常见信号包括:从零启动新项目、攻坚复杂疑难问题、对已有方案进行迭代优化。此 skill 提供标准化的跨 skill 工作流组合,解决"应该先用哪个 skill、怎么衔接"的问题。 English: Trigger when a task clearly requires multiple skills in sequence. Use this skill to select a standard workflow that chains skills together, defines data handoff between steps, and specifies…
protracted-strategy
触发:当目标长期、任务复杂、资源暂时处于劣势,或短期无法速胜但又不能放弃时调用;常见信号包括 long-term effort、phased plan、endurance、战略耐心、需要分阶段推进。 English: Trigger when the work is long-horizon, difficult, and unlikely to be won quickly. Use this skill to divide the effort into stages, keep strategic confidence, and accumulate small wins into overall victory.
workers-best-practices
Reviews and authors Cloudflare Workers code against production best practices. Load when writing new Workers, reviewing Worker code, configuring wrangler.jsonc, or checking for common Workers anti-patterns (streaming, floating promises, global state, secrets, bindings, observability). Biases towards retrieval from…
practice-cognition
触发:当你提出了方案、假设或判断,需要通过实践验证、试错迭代或复盘升级认知时调用;常见信号包括 experiment、prototype、validate、iterate、feedback loop。 English: Trigger when an idea, hypothesis, or plan must be tested in practice and improved through iteration. Use this skill to move from action to understanding and back to action in a spiral learning loop.
arming-thought
触发:在每次新的顶层对话开始时自动调用,用于建立“实事求是”的总原则,并在明确适用时为后续任务选择下游 skill;如果你是被派遣执行单一具体任务的子 agent,则跳过此 skill。 English: Trigger at the start of each new top-level conversation to establish the core methodology and select downstream skills only when clearly useful. Skip this skill when you are a delegated sub-agent handling a narrow…