ssh-agentd-control
Verifiedssh agentd control — AI and machine learning tool. Supports ssh-agentd, systemd, run, upload.
$ Add to .claude/skills/ About This Skill
Content available in Chinese
# ssh-agentd 控制技能
- 适用环境(当前):
- 二进制:`/home/krex/.openclaw/workspace-hermes/ssh-agentd/bin/ssh-agentd`
- 配置:`/home/krex/.openclaw/ssh-agentd/hosts.yaml`
- systemd:`ssh-agentd.service`
- 默认监听:`127.0.0.1:18081`
快速检查
```bash sudo systemctl is-enabled ssh-agentd.service sudo systemctl is-active ssh-agentd.service ss -ltnp | grep 18081 sudo systemctl status ssh-agentd.service --no-pager -l | sed -n '1,80p' ```
启停与自启
```bash sudo systemctl daemon-reload sudo systemctl enable --now ssh-agentd.service sudo systemctl restart ssh-agentd.service sudo systemctl stop ssh-agentd.service ```
API 调用要点
1) 默认使用 Bearer Token 鉴权(若配置启用) 2) 本机常有代理变量,调用本地 API 时必须绕过代理
推荐统一用脚本:`scripts/api.sh`
示例:运行远程命令
```bash SSH_AGENTD_TOKEN='<token>' \ scripts/api.sh POST /run '{"host":"nas","cmd":"hostname && whoami","timeoutSec":10}' ```
示例:查看会话与指标
```bash SSH_AGENTD_TOKEN='<token>' scripts/api.sh GET /sessions SSH_AGENTD_TOKEN='<token>' scripts/api.sh GET /metrics SSH_AGENTD_TOKEN='<token>' scripts/api.sh GET /health ```
常见故障
1) 返回 401 unauthorized - 检查 `apiAuth.enabled/token` 配置 - 确认请求头 `Authorization: Bearer <token>`
2) 调本地 API 返回 502 - 原因:请求被系统代理劫持 - 处理:用 `--noproxy '*'` 或临时 unset 代理变量(脚本已内置)
3) run 失败且提示 host key/known_hosts - 原因:v1 已启用 HostKey 校验 - 处理:把目标主机 key 加入 `known_hosts`
安全约束
- 不要把真实 token/密码写进 skill 文件。
- 不要把 `hosts.yaml` 放进仓库。
- 修改服务配置后必须重启并验证 `status + /health + /sessions`。
Use Cases
- Manage a persistent ssh-agentd daemon via systemd for always-on SSH sessions
- Execute remote commands on configured hosts through the ssh-agentd REST API
- Monitor SSH session health, metrics, and connectivity status
- Troubleshoot common ssh-agentd issues like 401 auth errors and proxy conflicts
- Upload files and tail logs on remote servers through the agent API
Pros & Cons
Pros
- +Bilingual documentation with detailed Chinese troubleshooting guides
- +Covers the full lifecycle — installation, configuration, API usage, and debugging
- +Clear security constraints about credential handling
Cons
- -Tightly coupled to a specific ssh-agentd binary and environment setup
- -English content is empty — Chinese-only documentation limits accessibility
FAQ
What does ssh-agentd-control do?
What platforms support ssh-agentd-control?
What are the use cases for ssh-agentd-control?
100+ free AI tools
Writing, PDF, image, and developer tools — all in your browser.
Next Step
Use the skill detail page to evaluate fit and install steps. For a direct browser workflow, move into a focused tool route instead of staying in broader support surfaces.