Sshhh — AI skill for Claude Code
让 AI agent 用 SSH,但密码永远不进入它的上下文 SSH for AI agents without exposing passwords.
How to install Sshhh
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open Hayuuka/sshhh and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Sshhh does
让 AI agent 用 SSH,但密码永远不进入它的上下文 SSH for AI agents without exposing passwords.
Alternatives in AI
- CLI Manager — A multi-project AI CLI workspace for local terminals, SSH hosts, and mobile-assisted workflows 749 ★
- Pebrel — AI-native, GPU-accelerated terminal emulator for Windows with SSH, persistent sessions, split panes, and first 670 ★
- Nebula — AI-native, GPU-accelerated terminal emulator for Windows with SSH, persistent sessions, split panes, and first 587 ★
README
sshhh
让 AI 能连你的 SSH 服务器,但它**永远看不到密码**。
Give your AI agent SSH access without ever putting the password into its context.
[English](README.en.md) · [](https://github.com/Hayuuka/sshhh/releases) [](LICENSE)  
适用场景
- 让 Claude Code / Cursor / Windsurf / Cline / WorkBuddy 这类 AI 编程助手
帮你把代码部署到服务器,又不想把 SSH 密码写进
.env或项目配置 - 让 AI 帮忙排查线上问题:看日志、查磁盘、看服务状态、重启服务
- 公司安全要求「生产环境密码不能进入任何第三方 AI 服务」
- 同时用好几个 AI 工具,不想为每个都配一遍密码
- 想限制 AI 只能跑只读命令,禁止
rm -rf、shutdown - 给 AI 临时开一次服务器权限,事后能查它到底跑了什么
为什么需要它
现在很多人让 AI agent 帮忙上服务器排障、看日志、重启服务。为了让它能连, 通常只能把密码写进配置文件、环境变量,或者直接贴在对话里。
**一旦这样做,密码就进了 AI 的上下文** —— 它会出现在对话记录、请求日志、 甚至被模型记住。
sshhh 换了个做法:**密码只经过脚本,不经过 AI**。
密码由用户在一个独立的控制台窗口里输入,脚本加密存进本地保险库。 AI 调用时只说「连 prod」,脚本自己去解密、连服务器、执行命令。 AI 全程接触不到明文,也不需要接触。
和直接把密码给 AI 的区别
| 直接把密码给 AI | 用 sshhh | |
|---|---|---|
| 密码进入对话上下文 | 是 | 否 |
| 密码出现在进程列表 / 命令历史 | 可能 | 否 |
| 远程回显了密码怎么办 | 原样进入上下文 | 自动替换成 [REDACTED] |
| 换一个 agent 要重新配吗 | 要 | 不用,共用一份 |
| 能限制 agent 跑什么命令吗 | 不能 | 白名单 / 黑名单 |
| 事后能追溯谁连了什么吗 | 不能 | 审计日志 |
| 装 skill 会污染系统 Python 吗 | 视实现而定 | 不会,独立 venv |
特性
1. 密码永不进入 AI 上下文
密码在独立的控制台窗口中由用户本人输入,`getpass` 屏蔽回显。 窗口关掉后密码只以密文形式存在于本地,AI 的任何调用都读不到它。
详情:状态行、命令输出、审计日志里都不会出现密码。
2. 一次配置,所有 agent 共用
配置固定存放在 `~/.sshhh/`,**与 skill 装在哪里无关**。
你在 Claude Code、Cursor、WorkBuddy 各装一份这个 skill,它们读的是同一份 配置,不会互相覆盖,也不需要重复设置密码。装十份也只配一次。
3. 零配置启动
不需要先运行什么 `init`、也不用手写配置文件。
第一次让 AI 连服务器时,脚本发现没有配置,会自动弹出一个控制台窗口, 让用户填主密码和服务器信息,填完窗口关闭,AI 收到「配置完成」状态后自动重试。 用户感知到的就是「AI 卡了一下,然后就连上了」。
4. 状态码协议 —— AI 知道该做什么
脚本不执行命令时,会返回明确的保留退出码并在 stderr 打出状态行:
SSHHH_STATUS: TIMEOUT
SSHHH_MESSAGE: 配置窗口等待超时
SSHHH_HINT: 请告诉用户在自己的终端里执行:python "..." config
| 状态 | 码
Related Skills
Kru
Local-first MCP password and credential manager for AI agents. Use passwords, API keys, SSH identities, and TO
OpenKeylet
OpenKeylet — Local password and credential manager for AI agents via MCP. Use passwords, API keys, SSH, and TO
Sudoplz
Give Claude Code, Cursor, and other AI coding agents the ability to run sudo with case-by-case GUI approval. P
Agent Secrets
Let an AI agent use your API keys and passwords without the plaintext ever entering its transcript. A plugin f
Termalin MCP
SSH MCP server for AI agents: run commands, manage files, query databases and read metrics on your own servers
Konnect
AI-assisted PCB design for KiCAD 10. Native KiCAD plugin — a single Rust binary exposing 171 schematic, layout
Related Agents
Data Setup
Helps users configure and validate DataForSEO and future provider credentials without exposing secrets.
Secret Purist
The paranoid sentinel of credential security. Use this agent to scan codebases and git history for leaked secr
App Intents Expert
Read-only App Intents reviewer. Use when exposing app actions to Siri, Shortcuts, Spotlight, Apple Intelligenc