← 返回 Skills 市场
offlinecat-dev

ssh-agentd-control

作者 offlinecat · GitHub ↗ · v0.1.0
cross-platform ⚠ suspicious
427
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install ssh-agentd-control
功能描述
管理并使用本地 ssh-agentd(systemd 常驻 + API 调用 + 连通性验证)。当用户提到 ssh-agentd、持久 SSH 会话、/run /upload /tail_logs、开机自启、会话状态/指标排查时使用。
安全使用建议
This skill appears to do what it says: help manage a local ssh-agentd service and call its HTTP API. Before installing or using it: (1) verify the hard-coded paths (e.g., /home/krex/...) and update them to match your environment; (2) review the systemd unit and hosts.yaml on the target machine so you trust what the agent can do; (3) treat SSH_AGENTD_TOKEN like any secret — do not store it in files checked into repos and prefer short-lived tokens with minimal scope; (4) be aware the script unsets proxy variables/uses --noproxy '*' (this is to reach localhost but effectively bypasses proxies/monitoring); (5) remember many commands require sudo and the agent can trigger remote command execution via /run, so limit who can invoke the skill and audit usage. If you need higher assurance, request the publisher declare SSH_AGENTD_TOKEN/SSH_AGENTD_URL as optional env vars in metadata and replace hard-coded paths with configurable defaults.
功能分析
Type: OpenClaw Skill Name: ssh-agentd-control Version: 0.1.0 The skill provides direct instructions in SKILL.md for the agent to execute privileged `sudo systemctl` commands locally and, more critically, to use the `ssh-agentd` service's `/run` API endpoint to execute arbitrary commands on remote hosts. This is demonstrated by the `{"host":"nas","cmd":"hostname && whoami","timeoutSec":10}` example in SKILL.md. While these capabilities might be intended for legitimate system administration, they present a significant prompt injection vulnerability, allowing an attacker to instruct the agent to inject malicious commands into the `cmd` parameter, leading to remote code execution on target hosts or privileged local actions.
能力评估
Purpose & Capability
The name/description match the provided instructions and script: systemctl commands, local API calls, and connectivity checks. Minor oddity: SKILL.md references hard-coded user-specific paths (/home/krex/...) which makes the skill environment-specific and may not work on other machines or leak path assumptions.
Instruction Scope
Instructions tell the agent to run systemctl, inspect sockets, and call the local API (including running remote commands through the agent). All of these are coherent with managing ssh-agentd. Note: the skill suggests running privileged commands (sudo) and will invoke operations that can execute arbitrary commands on hosts via the agent's /run endpoint — expected for this tool but powerful, so exercise caution.
Install Mechanism
No install spec (instruction-only) and only a small helper script are included, so nothing is downloaded or written to disk at install time beyond the provided files.
Credentials
Registry metadata lists no required env vars, but the script and examples use SSH_AGENTD_TOKEN and optionally SSH_AGENTD_URL. This is reasonable (token is optional if API auth is disabled), but the skill should document these env vars in its manifest. The script intentionally unsets proxy env vars/uses --noproxy to reach localhost; while sensible to avoid proxy interception, this behavior can bypass network monitoring in some environments and is worth noting.
Persistence & Privilege
The skill does not request always:true or persistent privileges. It instructs administrators to run systemctl (sudo) for enabling/restarting the service — appropriate for managing a systemd service. The skill does not modify other skills or global agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ssh-agentd-control
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ssh-agentd-control 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
initial release
元数据
Slug ssh-agentd-control
版本 0.1.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

ssh-agentd-control 是什么?

管理并使用本地 ssh-agentd(systemd 常驻 + API 调用 + 连通性验证)。当用户提到 ssh-agentd、持久 SSH 会话、/run /upload /tail_logs、开机自启、会话状态/指标排查时使用。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 427 次。

如何安装 ssh-agentd-control?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install ssh-agentd-control」即可一键安装,无需额外配置。

ssh-agentd-control 是免费的吗?

是的,ssh-agentd-control 完全免费(开源免费),可自由下载、安装和使用。

ssh-agentd-control 支持哪些平台?

ssh-agentd-control 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 ssh-agentd-control?

由 offlinecat(@offlinecat-dev)开发并维护,当前版本 v0.1.0。

💬 留言讨论