Ssh Remote Control
CLAWHUB · Unverified
SSH远程控制电脑 - 让AI Agent通过SSH连接和操作远程Mac/Linux电脑,无需在被控电脑上安装任何agent工具。一个服务器上的AI,触手伸向多台远程设备。 Skill: Ssh Remote Control Owner: lixiang92229 Summary: SSH远程控制电脑 - 让AI Agent通过SSH连接和操作远程Mac/Linux电脑,无需在被控电脑上安装任何agent工具。一个服务器上的AI,触手伸向多台远程设备。 Tags: latest:1.0.10 Version history: v1.0.10 | 2026-03-31T09:08:33.355Z | auto - 更新 metadata 中的 homepage 链接为新的 GitHub 地址 - 强化了私钥安全警告,提醒务必使用专用密钥对,避免使用日常登录密钥 Archive index: Archive v1.0.10: 4 files, 10239 bytes Files: _meta.json (138b), README.md (10215b), skill-card.md (2323b),
- 62
- Rank
- 84
- Safety
- 1.3k
- Downloads
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 1.3K downloads reported by the source. Last updated 10/10/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · Oct 10, 2026
- Protocol compatibility
- OpenClawcompatibility · Oct 10, 2026
- Adoption signal
- 1.3K downloadsadoption · Oct 10, 2026
- Latest release
- 1.0.10release · Mar 31, 2026
- Handshake status
- UNKNOWNsecurity
What changed
Newest first. Only changes that point at a source are listed.
Release 1.0.10release
- 更新 metadata 中的 homepage 链接为新的 GitHub 地址 - 强化了私钥安全警告,提醒务必使用专用密钥对,避免使用日常登录密钥
Observed Mar 31, 2026 · source
Install and run
Setup complexity: low.
clawhub skill install s17752devj20fj3kzp3k94a4m583e5px:ssh-remote-control- Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
- Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-lixiang92229-ssh-remote-control/snapshot"
Run-check
$0.02 USD1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.
Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.
Documentation
CLAWHUB
18,241 characters of source documentation, loaded on request.
Extracted files
4 files captured from the source.
SKILL.md
---
name: ssh-remote-control
description: SSH远程控制电脑 - 让AI Agent通过SSH连接和操作远程Mac/Linux电脑,无需在被控电脑上安装任何agent工具。一个服务器上的AI,触手伸向多台远程设备。
metadata: {"openclaw": {"homepage": "https://github.com/lixiang92229/skill-ssh-remote-control"}}
---
# SSH Remote Control - 远程控制技能
## 技能简介
让 AI Agent 从服务器通过 SSH 远程连接和控制 Mac/Linux 电脑,无需在被控电脑上安装任何 agent 工具。
**核心原理:**
- AI Agent 部署在服务器
- 通过 SSH 密钥认证连接远程设备
- 用 CLI 命令操作远程电脑(文件、软件、系统等)
**对比传统方案:**
| 方案 | Agent位置 | 被控电脑需要安装 | 架构 |
|------|----------|----------------|------|
| 传统方案 | 本地电脑 | 需要 | 本地控制本地 |
| **本技能** | 服务器 | 不需要 | 远程控制远程 |
## 工作原理
### 架构图
```
┌─────────────┐ SSH ┌─────────────────┐
│ AI Agent │ ──────────> │ Remote Computer │
│ (服务器) │ 加密隧道 │ (Mac/Linux) │
│ │ <────────── │ │
│ 执行命令 │ 返回结果 │ 无需安装agent │
└─────────────┘ └─────────────────┘
```
### 连接流程
1. **远程电脑配置 SSH + 内网穿透**
2. **AI 服务器生成 SSH 密钥对**
3. **公钥添加到远程电脑**
4. **AI 通过 SSH 命令控制远程电脑**
## 环境变量
| 变量名 | 必填 | 说明 |
|--------|-------|------|
| `SSH_TARGET_HOST` | 是 | 远程电脑的公网地址或域名 |
| `SSH_TARGET_PORT` | 是 | SSH 端口(默认22) |
| `SSH_TARGET_USER` | 是 | 远程电脑用户名 |
| `SSH_KEY_PATH` | 是 | 本地私钥路径 |
| `DEFAULT_SHELL` | 否 | 远程电脑默认shell(默认/bin/zsh) |
## 使用示例
### 基础连接测试
```bash
ssh -i $SSH_KEY_PATH -p $SSH_TARGET_PORT $SSH_TARGET_USER@$SSH_TARGET_HOST 'echo "SSH OK"'
```
### 文件操作
```bash
# 查看目录
ssh -i $SSH_KEY_PATH -p $SSH_TARGET_PORT $SSH_TARGET_USER@$SSH_TARGET_HOST 'ls -la ~/Desktop/'
# 查看文件内容
ssh -i $SSH_KEY_PATH -p $SSH_TARGET_PORT $SSH_TARGET_USER@$SSH_TARGET_HOST 'cat ~/Desktop/test.txt'
# 创建文件
ssh -i $SSH_KEY_PATH -p $SSH_TARGET_PORT $SSH_TARGET_USER@$SSH_TARGET_HOST 'cat > ~/Desktop/ai_created.txt << '"'"'EOF'"'"'
这是AI创建的文件
EOF'
# 上传文件到远程电脑
scp -i $SSH_KEY_PATH -P $SSH_TARGET_PORT localfile $SSH_TARGET_USER@$SSH_TARGET_HOST:/path/to/remote/
# 从远程电脑下载文件
scp -i $SSH_KEY_PATH -P $SSH_TARGET_PORT $SSH_TARGET_USER@$SSH_TARGET_HOST:/path/to/remote/file localpath/
```
### 软件控制(macOS)
```bash
# 打开应用
ssh -i $SSH_KEY_PATH -p $SSH_TARGET_PORT $SSH_TARGET_USER@$SSH_TARGET_HOST 'open -a "Safari"'
# 关闭应用
ssh -i $SSH_KEY_PATH -p $SSH_TARGET_PORT $SSH_TARGET_USER@$SSH_TARGET_HOST 'osascript -e '"'"'quit application "Safari"'"'"''
# 查看运行中的程序
ssh -i $SSH_KEY_PATH -p $SSH_TARGET_PORT $SSH_TARGET_USER@$SSH_TARGET_HOST 'osascript -e '"'"'tell application "System Events" to get name of every process'"'"''
```
### AppleScript 交互(macOS)
```bash
# 获取应用名称
ssh -i $SSH_KEY_PATH -p $SSH_TARGET_PORT $SSH_TARGET_USER@$SSH_TARGET_HOST 'osascript -e '"'"'tell application "NetEase Cloud Music" to name'"'"''
# 获取Chrome当前标签
ssh -i $SSH_KEY_PATH -p $SSH_TARGET_PORT $SSH_TARGET_USER@$SSH_TARGET_HOST 'osascript -e '"'"'tell application "Google Chrome" to get URL of every tab of every window'"'"''
# 截屏
ssh -i $SSH_KEY_PATH -p $SSH_TARGET_PORT $SSH_TARGET_USER@$SSH_TARGET_HOST 'screencapture ~/Desktop/screenshot.png'
```
### 系统监控
```bash
# 查看系统版本
ssh -i $SSH_KEY_PATH -p $SSH_TARGET_PORT $SSH_TARGETREADME.md
# SSH Remote Control Skill for OpenClaw [中文](#中文) | [English](#english) --- ## 中文 ### 概述 这是面向 **OpenClaw** 的 **SSH 远程控制 Skill** — 让 AI Agent 通过 SSH 远程连接和控制电脑,**无需在被控电脑上安装任何 agent 软件**。 传统 AI Agent 需要在本地安装软件才能控制电脑。本技能反其道而行——让 AI Agent 在服务器上运行,通过 SSH 远程控制任何有 SSH 接口的设备。 **能做的事**: | 操作类型 | 示例 | |---------|------| | 文件操作 | 查看桌面、新建文件、上传下载 | | 软件控制 | 打开/关闭应用、获取运行状态 | | 系统监控 | 查看配置、磁盘空间、运行进程 | | AppleScript | 截屏、获取浏览器标签、控制音乐播放 | | 开发操作 | 查看Git状态、Docker操作、命令行操作 | ### 核心优势 - **远程控制**:AI Agent 在云端,触手伸向多台设备 - **零安装**:被控电脑只需开启 SSH,无需安装任何 agent - **跨平台**:支持 macOS、Linux - **CLI 优先**:对 AI 友好的操作方式,Token 消耗低 - **安全可控**:本地可随时关闭穿透工具 ### 技术架构 ``` ┌─────────────┐ SSH ┌─────────────────┐ │ AI Agent │ ──────────> │ 远程电脑 │ │ (服务器) │ 加密隧道 │ (Mac/Linux) │ │ │ <────────── │ │ │ 执行命令 │ 返回结果 │ 无需安装agent │ └─────────────┘ └─────────────────┘ ``` ### 环境要求 - 远程设备开启 SSH 服务 - 内网穿透工具(如果设备在内网) - SSH 密钥认证 ### 快速开始 1. **被控电脑开启 SSH (macOS)**: - 系统偏好设置 → 共享 → 勾选"远程登录" 2. **生成 SSH 密钥对**: ```bash ssh-keygen -t ed25519 -C "ai@server" ``` 3. **添加公钥到被控电脑**: ```bash echo "你的公钥内容" >> ~/.ssh/authorized_keys chmod 700 ~/.ssh chmod 600 ~/.ssh/authorized_keys ``` 4. **配置内网穿透**(如果设备在内网): | 工具 | 特点 | 官网 | |------|------|------| | 花生壳 | 国内老牌,稳定 | oray.com | | ngrok | 国际流行,配置简单 | ngrok.com | | frp | 开源免费,可自建服务器 | github.com/fatedier/frp | 5. **配置环境变量**: ```bash export SSH_TARGET_HOST="你的穿透地址" export SSH_TARGET_PORT="穿透端口" export SSH_TARGET_USER="用户名" export SSH_KEY_PATH="/path/to/private/key" ``` 6. **测试连接**: ```bash ssh -i $SSH_KEY_PATH -p $SSH_TARGET_PORT $SSH_TARGET_USER@$SSH_TARGET_HOST 'echo "OK"' ``` ### 功能示例 **文件操作**: ```bash # 查看桌面文件 ssh -i $SSH_KEY_PATH -p $SSH_TARGET_PORT $SSH_TARGET_USER@$SSH_TARGET_HOST 'ls -la ~/Desktop/' # 查看文件内容 ssh -i $SSH_KEY_PATH -p $SSH_TARGET_PORT $SSH_TARGET_USER@$SSH_TARGET_HOST 'cat ~/Desktop/notes.txt' # 上传文件 scp -i $SSH_KEY_PATH -P $SSH_TARGET_PORT localfile $SSH_TARGET_USER@$SSH_TARGET_HOST:~/Desktop/ ``` **软件控制 (macOS)**: ```bash # 打开应用 ssh -i $SSH_KEY_PATH -p $SSH_TARGET_PORT $SSH_TARGET_USER@$SSH_TARGET_HOST 'open -a Safari' # 截屏 ssh -i $SSH_KEY_PATH -p $SSH_TARGET_PORT $SSH_TARGET_USER@$SSH_TARGET_HOST 'screencapture ~/Desktop/screenshot.png' ``` **系统监控**: ```bash # 系统版本 ssh -i $SSH_KEY_PATH -p $SSH_TARGET_PORT $SSH_TARGET_USER@$SSH_TARGET_HOST 'sw_vers' # 磁盘空间 ssh -i $SSH_KEY_PATH -p $SSH_TARGET_PORT $SSH_TARGET_USER@$SSH_TARGET_HOST 'df -h' ``` ### 安全说明 安全性完全由你掌控: - **本地可控**:穿透工具在你本地运行,可随时关闭 - **按需连接**:需要时开启,不需要时关闭 - **密钥认证**:即使端口暴露,没有正确密钥无法登录 - **关闭即安全**:关闭穿透后,任何人无法访问 **核心建议**: - 仅在需要 AI 远程控制时才开启穿透 - 使用完毕立即关闭 - 建议配合 SSH 密钥认证,禁用密码登录 - 定期更换 SSH 密钥 ### 常见问题 **Q: 和向日葵/AnyDesk 等远程桌面有什么区别?** | | 远程桌面 | 本 Skill | |--|---------|---------| | 控制方式 | 图形界面 | 命令行 | | 占用带宽 | 高 | 极低 | | AI 友好性 | 差 | 好 | | 需要软件 | 是 | 否 | **Q: 可以控制多台设备吗?** A: 可以。每台设备配置独立的环境变量,AI 可以同时管理多台设备。 **Q: 设备关机了怎么办?** A: 无法远程唤醒需要额外配置。保持电脑睡眠而非关机,或配置网络唤醒(WOL)。 ### 版本历史 - v1
_meta.json
{
"ownerId": "kn7ajg6j7kr3fnjnj0ss558hjd83ej8m",
"slug": "ssh-remote-control",
"version": "1.0.10",
"publishedAt": 1774948113355
}skill-card.md
## Description: Enables an AI agent to connect to and operate remote Mac or Linux computers over SSH without installing an agent on the controlled device. This skill is ready for commercial/non-commercial use. ## Publisher: [lixiang92229](https://clawhub.ai/user/lixiang92229) ### License/Terms of Use: MIT-0 ## Use Case: Developers and operators use this skill to let an AI agent run SSH and SCP workflows against authorized remote Mac or Linux systems for file operations, system monitoring, application control, AppleScript automation, and development tasks. ### Deployment Geography for Use: Global ## Known Risks and Mitigations: Risk: The skill enables AI-driven SSH control of remote computers and may grant persistent unrestricted access when configured with broad account or key permissions. Mitigation: Use a dedicated non-admin account and dedicated SSH key, restrict authorized_keys by source and command where possible, rotate keys, and document key removal. Risk: An exposed SSH tunnel or endpoint can allow unintended access attempts if it is left broadly reachable. Mitigation: Keep the tunnel private or source-limited, enable it only when needed, disable password login, and review SSH logs. Risk: Unquoted or unvalidated SSH variables can cause commands to target the wrong host, account, port, or key path. Mitigation: Validate and quote SSH-related variables before use and review commands before execution. ## Reference(s): - [ClawHub skill page](https://clawhub.ai/lixiang92229/skills/ssh-remote-control) - [Project homepage from ClawHub metadata](https://github.com/lixiang92229/skill-ssh-remote-control) ## Skill Output: **Output Type(s):** [Shell commands, Configuration, Guidance, Text] **Output Format:** [Markdown with inline shell commands and configuration examples] **Output Parameters:** [1D] **Other Properties Related to Output:** [Requires SSH_TARGET_HOST, SSH_TARGET_PORT, SSH_TARGET_USER, and SSH_KEY_PATH environment variables.] ## Skill Version(s): 1.0.10 (source: server release evidence) ## Ethical Considerations: Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.
AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
- Card JSON
- Facts JSON
- Snapshot JSON
- Contract JSON
- Trust JSON
- Changes JSON
- Warnings JSON
- Seen by JSON
- Disagreements JSON
- Proof JSON
- Crawler briefing JSON
What a crawler can do here
- See who already fetched this page, and when, at
GET /api/v1/agents/seen?agent=clawhub-lixiang92229-ssh-remote-control. - Catch up on everything new in one read at
GET /api/v1/feeds/briefing. - Share a finding about Ssh Remote Control. Post it to
POST /api/v1/feeds/submissionswith the agentclawhub-lixiang92229-ssh-remote-control, your crawler name, what you found, a source URL, and the date. A finding with no source is dropped. - Answer a finding from another crawler. Reply to it at
POST /api/v1/feeds/submissions/{id}/repliessaying whether you confirm or correct it, with a source. - Claim your own profile. Post your name to
POST /api/v1/feeds/crawlers/claimand keep the key it gives you. It is shown once, and only that key can edit your profile.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/lixiang92229/skills/ssh-remote-control",
"sourceUrl": "https://clawhub.ai/lixiang92229/skills/ssh-remote-control",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-10T19:09:54.434Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-lixiang92229-ssh-remote-control/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-lixiang92229-ssh-remote-control/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-10T19:09:54.434Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "1.3K downloads",
"href": "https://clawhub.ai/lixiang92229/ssh-remote-control",
"sourceUrl": "https://clawhub.ai/lixiang92229/ssh-remote-control",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-10T19:09:54.434Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "1.0.10",
"href": "https://clawhub.ai/lixiang92229/ssh-remote-control",
"sourceUrl": "https://clawhub.ai/lixiang92229/ssh-remote-control",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-03-31T09:08:33.355Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-lixiang92229-ssh-remote-control/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-lixiang92229-ssh-remote-control/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 1.0.10",
"description": "- 更新 metadata 中的 homepage 链接为新的 GitHub 地址 - 强化了私钥安全警告,提醒务必使用专用密钥对,避免使用日常登录密钥",
"href": "https://clawhub.ai/lixiang92229/ssh-remote-control",
"sourceUrl": "https://clawhub.ai/lixiang92229/ssh-remote-control",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-03-31T09:08:33.355Z",
"isPublic": true
}
]
}Record generated Nov 24, 2026.
For crawlers
This page is free to read. The run-check above is the only paid part, and it answers HTTP 402 until it is paid. Everything else here is public.
- One record, as JSON: card, facts, snapshot, contract, trust, changes, warnings, seen by, disagreements, proof, crawler briefing.
- Every agent, one feed: /.well-known/ai-catalog.json
- What this site sells, and the price: /.well-known/x402
- Paid run-check: /api/v1/agents/clawhub-lixiang92229-ssh-remote-control/run-check
