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 skills add chaterm/terminal-skills --skill sshgit clone --depth 1 https://github.com/chaterm/terminal-skillsWrote 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/chaterm/terminal-skills/ssh)<a href="https://agentmods.dev/skills/chaterm/terminal-skills/ssh"><img src="https://agentmods.dev/badge/skills/chaterm/terminal-skills/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.
<a href="https://agentmods.dev/skills/chaterm/terminal-skills/ssh"><img src="https://agentmods.dev/badge/skills/chaterm/terminal-skills/ssh.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00007 | $0.01577 |
| Opus 5.5 | $0.00003 | $0.00631 |
| Sonnet 5.5 | $0.00001 | $0.00315 |
| Haiku 4.5 | $0.00001 | $0.00158 |
Grade A, and why
ssh 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 270 lines — stays where its author put it; the contents beside it link to each section on GitHub.
SSH 管理与安全
概述
SSH 密钥管理、跳板机配置、端口转发、安全加固等技能。
基础连接
连接命令
# 基础连接
ssh user@hostname
ssh -p 2222 user@hostname # 指定端口
# 执行远程命令
ssh user@hostname "command"
ssh user@hostname 'ls -la && df -h'
# 详细输出(调试)
ssh -v user@hostname
ssh -vvv user@hostname # 更详细
配置文件
# ~/.ssh/config
Host myserver
HostName 192.168.1.100
User admin
Port 22
IdentityFile ~/.ssh/id_rsa_myserver
Host dev-*
User developer
IdentityFile ~/.ssh/id_rsa_dev
Host *
ServerAliveInterval 60
ServerAliveCountMax 3
AddKeysToAgent yes
# 使用配置
ssh myserver
密钥管理
生成密钥
# 生成 RSA 密钥(推荐 4096 位)
ssh-keygen -t rsa -b 4096 -C "[email protected]"
# 生成 Ed25519 密钥(推荐)
ssh-keygen -t ed25519 -C "[email protected]"
# 指定文件名
ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519_work
# 修改密码
ssh-keygen -p -f ~/.ssh/id_rsa
部署公钥
# 方式1:ssh-copy-id
ssh-copy-id user@hostname
ssh-copy-id -i ~/.ssh/id_ed25519.pub user@hostname
# 方式2:手动复制
cat ~/.ssh/id_ed25519.pub | ssh user@hostname "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
# 方式3:直接编辑
ssh user@hostname
echo "public_key_content" >> ~/.ssh/authorized_keys
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
SSH Agent
# 启动 agent
eval "$(ssh-agent -s)"
# 添加密钥
ssh-add ~/.ssh/id_rsa
ssh-add -l # 列出已添加的密钥
# 转发 agent(跳板机场景)
ssh -A user@jumphost
端口转发
本地转发
# 将本地端口转发到远程
ssh -L local_port:target_host:target_port user@ssh_server
# 示例:访问远程 MySQL
ssh -L 3306:localhost:3306 user@dbserver
mysql -h 127.0.0.1 -P 3306
# 示例:访问内网服务
ssh -L 8080:internal.server:80 user@jumphost
curl http://localhost:8080
远程转发
# 将远程端口转发到本地
ssh -R remote_port:local_host:local_port user@ssh_server
# 示例:暴露本地服务
ssh -R 8080:localhost:3000 user@public_server
# 现在可以通过 public_server:8080 访问本地 3000 端口
动态转发(SOCKS 代理)
# 创建 SOCKS5 代理
ssh -D 1080 user@ssh_server
# 使用代理
curl --socks5 localhost:1080 http://example.com
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.
- 2mo ago First seen · 270 lines · 7 tokens per session scan F 148474afe32a
ssh is a skill published in the GitHub repository chaterm/terminal-skills (59 stars, last pushed 8mo ago), licensed Apache-2.0. It adds 7 tokens to every session and 1,577 once invoked, about $0.0000 per session on Opus 5.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.
ssh compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sshchaterm/terminal-skills | Skill | 59 | 8mo ago | Apache-2.0 | A | 7 | Claude Code, Codex |
| skillci-guardrailskabirnarang39/skillci | Skill | 8 | 2mo ago | Apache-2.0 | A | 143 | Claude Code |
| example-skillkabirnarang39/skillci | Skill | 8 | 2mo ago | Apache-2.0 | A | 24 | Claude Code |
| clean-skillkabirnarang39/skillci | Skill | 8 | 2mo ago | Apache-2.0 | A | 23 | Claude Code |
| skill-with-referenced-issuekabirnarang39/skillci | Skill | 8 | 2mo ago | Apache-2.0 | A | 19 | Claude Code |
| councilhimanshufound/council | Skill | 3 | 4mo ago | Apache-2.0 | A | 135 | Claude Code, Codex |
| council-litehimanshufound/council | Skill | 3 | 4mo ago | Apache-2.0 | A | 114 | Claude Code, Codex |