xiaoyaner0201

Windows Remote

运维安全v1.0.0
作者:xiaoyaner0201更新于 2026-05-17windows-remote@clawhub_xiaoyaner0201/windows-remote
服务器运维故障排查

据 AlphaMoat 统计,截至 2026-09,Windows Remote 累计下载 3,946 次、获 0 个星标,在全部 5,078 个 AI 技能中排名第 2,617 位,在「运维安全」分类(264 个)中排名第 155 位。

累计安装
123
累计下载
3,946
星标
-
全站排名
#2,617
全站前 52% · 「运维安全」前 59%
平台累计安装累计下载星标评论
ClawHub ↗1233,501--
SkillHub ↗1233,946-—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

主文要求配置主机、用户名和可选 SSH 端口或密钥,并提供 PowerShell、服务管理和文件传输示例。此类操作具有较强权限,且文档提到默认 SSH/SCP 选项会关闭严格主机密钥检查;只应管理自己有权访问的主机,使用受限账户和专用密钥,并逐项确认命令、文件路径和主机身份。

资料发布于 2026-10-29

可以用来做什么

  • 检查远程 Windows 主机的连接或 GPU 状态
  • 规划通过 SSH 执行 PowerShell 命令
  • 审查脚本上传和结果下载路径

什么时候用

  • 用户明确授权管理目标 Windows 主机,并确认 SSH 主机密钥、账户权限和命令影响时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

只规划一条远程状态检查命令,不建立 SSH 连接或执行操作。
运行远程脚本前列出需要确认的主机指纹、命令和文件传输路径。

月度数据趋势

累计下载3,946
2,2313,1524,0732026-03 · 累计下载 2,3582026-05 · 累计下载 3,1262026-07 · 累计下载 3,4872026-08 · 累计下载 3,6182026-09 · 累计下载 3,94626-0326-09
星标-
0112026-03 · 星标 -2026-05 · 星标 -2026-07 · 星标 -2026-08 · 星标 -2026-09 · 星标 -26-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-093,946—-
2026-083,618+3.8%-
2026-073,487—-
2026-053,126—-
2026-032,358—-

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

3.7 KB · ClawHub v1.0.0
---
name: windows-remote
description: Control remote Windows machines via SSH. Use when executing commands on Windows, checking GPU status (nvidia-smi), running scripts, or managing remote Windows systems. Triggers on "run on Windows", "execute on remote", "check GPU", "nvidia-smi", "远程执行", "Windows 命令".
metadata:
  {
    "openclaw":
      {
        "emoji": "🖥️",
        "requires": {
          "bins": ["ssh"],
展开全部(共 163 行)
          "env": ["WINDOWS_SSH_HOST", "WINDOWS_SSH_USER"]
        },
        "env": {
          "WINDOWS_SSH_HOST": {
            "description": "Remote Windows IP or hostname",
            "required": true,
            "example": "192.168.1.100"
          },
          "WINDOWS_SSH_PORT": {
            "description": "SSH port (default: 22)",
            "required": false,
            "default": "22",
            "example": "23217"
          },
          "WINDOWS_SSH_USER": {
            "description": "SSH username",
            "required": true,
            "example": "Administrator"
          },
          "WINDOWS_SSH_KEY": {
            "description": "Path to SSH private key (default: ~/.ssh/id_ed25519)",
            "required": false,
            "default": "~/.ssh/id_ed25519"
          },
          "WINDOWS_SSH_TIMEOUT": {
            "description": "Connection timeout in seconds",
            "required": false,
            "default": "10"
          }
        }
      }
  }
---

# Windows Remote Control

Execute commands on remote Windows machines via SSH.

## Configuration

Set environment variables in `~/.openclaw/openclaw.json` under `skills.windows-remote.env`:

```json
{
  "skills": {
    "windows-remote": {
      "env": {
        "WINDOWS_SSH_HOST": "192.168.1.100",
        "WINDOWS_SSH_PORT": "22",
        "WINDOWS_SSH_USER": "Administrator"
      }
    }
  }
}
```

Or export directly:
```bash
export WINDOWS_SSH_HOST="192.168.1.100"
export WINDOWS_SSH_PORT="22"
export WINDOWS_SSH_USER="Administrator"
```

## Quick Commands

### Check Connection
```bash
scripts/win-exec.sh "echo connected"
```

### GPU Status
```bash
scripts/win-exec.sh "nvidia-smi"
```

### Run PowerShell
```bash
scripts/win-exec.sh "powershell -Command 'Get-Process | Select-Object -First 10'"
```

### Execute Script
```bash
scripts/win-exec.sh "python C:\\path\\to\\script.py"
```

## Script Reference

### win-exec.sh
Execute a single command on the remote Windows machine.

```bash
scripts/win-exec.sh "<command>"
```

### win-gpu.sh
Quick GPU status check (nvidia-smi wrapper).

```bash
scripts/win-gpu.sh
scripts/win-gpu.sh --query  # Compact output
```

### win-upload.sh
Upload files to the remote machine via SCP.

```bash
scripts/win-upload.sh <local-file> <remote-path>
```

### win-download.sh
Download files from the remote machine.

```bash
scripts/win-download.sh <remote-path> <local-file>
```

## Common Tasks

### Check if Ollama is Running
```bash
scripts/win-exec.sh "tasklist | findstr ollama"
```

### Start a Service
```bash
scripts/win-exec.sh "net start <service-name>"
```

### Run Python with GPU
```bash
scripts/win-exec.sh "python -c \"import torch; print(torch.cuda.is_available())\""
```

### Check Disk Space
```bash
scripts/win-exec.sh "wmic logicaldisk get size,freespace,caption"
```

## Troubleshooting

| Issue | Solution |
|-------|----------|
| Connection refused | Check SSH service: `Get-Service sshd` |
| Permission denied | Verify SSH key in `~/.ssh/authorized_keys` or `administrators_authorized_keys` |
| Timeout | Check firewall rules, verify IP/port |
| Command not found | Use full path or check PATH on Windows |

## Security Notes

- Use SSH keys instead of passwords
- Keep private keys secure (chmod 600)
- Consider using Tailscale for cross-network access

「运维安全」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。