← 返回
未分类

麒麟指挥官

Remote control Kylin/Feiteng ARM64 Linux computers from QClaw via TCP relay. Single command deploy + instant reconnect. Use when: (1) user wants to connect to or control a remote Kylin/ARM64 machine, (2) deploy relay to a new Kylin target, (3) execute shell commands on a remote ARM64 Linux, (4) manage multiple Kylin machines. Triggers: 连接麒麟, 操控麒麟, 部署麒麟, deploy to Kylin, ARM64 remote, Kylin relay.
一键远程控制麒麟/飞腾 ARM64 Linux 机器,一条命令部署,后续免SSH即时连接。 在企业信创落地过程中,运维人员经常需要管理多台麒麟/飞腾 ARM64 Linux 服务器。传统 SSH 方式存在不少痛点——麒麟系统自带的 SSH 配置策略复杂,密钥认证权限要求苛刻,防火墙和 SELinux 的额外限制,加上每次操作都要重新握手、输入密码,极大降低了日常运维效率。 kylin-relay 通过一条命令向目标麒麟机器部署一个 195KB 的轻量级 TCP 中继服务,后续所有操作走自定义 JSON 协议直连,完全绕过 SSH 的繁琐认证过程,实现毫秒级响应、一键连接。具体使用场景包括: 日常巡检:在 OpenClaw 中直接说"连麒麟看看状态",即刻返回 CPU、内存、磁盘、运行时间等关键指标,无需开 SSH 终端、无需等待连接; 批量管理:多台信创机器逐一部署后,可随时在机器间切换执行命令,再也不用每台反复 SSH 登出登入; 非技术人员使用:降低麒麟服务器操控门槛,领导或客户一句话就能查看机器状态,无需学习 SSH 客户端配置; 应急排查:当 SSH 服务因网络策略变更或配置问题不可用时,TCP 中继作为独立通道仍可下发命令、采集日志,为故障恢复争取时间; OpenClaw 控制麒麟软件环境一键搭建:通过 OpenClaw 自动化流程,批量完成麒麟机器的软件安装、环境配置、依赖部署,如有保密需求可在断网前完成服务端部署和参数调整,后续在隔离网络中正常使用。 Remote control Kylin/Feiteng ARM64 Linux computers from QClaw via TCP relay. Single command deploy + instant reconnect. Use when: (1) user wants to connect to or control a remote Kylin/ARM64 machine, (2) deploy relay to a new Kylin target, (3) execute shell commands on a remote ARM64 Linux, (4) manage multiple Kylin machines. Triggers: 连接麒麟, 操控麒麟, 部署麒麟, deploy to Kylin, ARM64 remote, Kylin relay.
喜剧之王
未分类 community v1.0.0 1 版本 97916.7 Key: 无需
★ 0
Stars
📥 47
下载
💾 0
安装
1
版本
#latest

概述

Kylin Relay Skill

What This Skill Does

Lets QClaw remotely control any Kylin/Feiteng ARM64 Linux computer.

From a new Windows machine, one command deploys everything. From then on, instant reconnect.

`

QClaw (Windows) TCP:12345 (JSON) Kylin ARM64

relay_client.py ──── exec/status ────────→ qt-relay (GUI)

←── stdout/stderr/exit ──── QProcess → bash

`

Quick Reference For The Agent

Already deployed - just connect and use:

`

python scripts/relay_client.py status

python scripts/relay_client.py exec ""

`

First time on a new Kylin - one deploy command:

`

python scripts/relay_client.py deploy --ssh-user --ssh-pass

`

Credentials are saved to ~/.qclaw/kylin-relay.json automatically.

After first deploy, just use status and exec without credentials.

Multi-machine:

`

python scripts/relay_client.py 192.168.1.7 status

python scripts/relay_client.py 192.168.1.7 exec "df -h"

python scripts/relay_client.py 192.168.1.100 status

python scripts/relay_client.py 192.168.1.100 exec "uname -a"

`

Setup On A New Windows Machine

  1. Copy the entire kylin-relay directory to ~/.qclaw/skills/
  2. Download the ARM64 binary (one-time):
    • Windows (PowerShell):

```powershell

$url = "https://raw.githubusercontent.com/XinLongWang2001/kylin-relay/main/assets/qt-relay-arm64"

$dir = "$env:USERPROFILE\.qclaw\skills\kylin-relay\assets"

New-Item -ItemType Directory -Path $dir -Force | Out-Null

Invoke-WebRequest -Uri $url -OutFile "$dir\qt-relay-arm64"

```

  • Linux/macOS:

```bash

curl -fsSL https://raw.githubusercontent.com/XinLongWang2001/kylin-relay/main/assets/qt-relay-arm64 \

-o ~/.qclaw/skills/kylin-relay/assets/qt-relay-arm64

```

  1. That's it. The skill is self-contained.
    • ARM64 binary downloads to assets/
    • SSH helpers in scripts/ (cross-platform)

First Deployment To A New Kylin

Step by step what happens:

`

User: "部署麒麟 192.168.1.100"

Agent calls:

python scripts/relay_client.py 192.168.1.100 deploy --ssh-user root --ssh-pass MyPass123

The deploy command:

[1/4] SSH to Kylin, verify connectivity and architecture

[2/4] SCP the pre-compiled ARM64 binary (~/qt-relay-project/qt-relay)

[3/4] Check Qt5 libraries (auto-install if missing)

[4/4] Start service: nohup DISPLAY=:0 ./qt-relay --bind 0.0.0.0 &

→ Save credentials to ~/.qclaw/kylin-relay.json

`

Time: ~5 seconds (binary transfer). No compilation needed.

Daily Usage

`

User: "连麒麟看看状态"

Agent: python scripts/relay_client.py 192.168.1.7 status

→ [OK] Kylin Relay online / system / user / hostname

User: "麒麟上看看磁盘"

Agent: python scripts/relay_client.py 192.168.1.7 exec "df -h"

User: "麒麟安装nginx"

Agent: python scripts/relay_client.py 192.168.1.7 exec "sudo apt install nginx -y"

`

Config File

~/.qclaw/kylin-relay.json:

`json

{

"targets": {

"192.168.1.7": {

"host": "192.168.1.7",

"ssh_user": "d2000",

"ssh_pass": "qilin@123",

"port": 12345,

"token": "qclaw-relay"

},

"192.168.1.100": {

"host": "192.168.1.100",

"ssh_user": "root",

"ssh_pass": "MyPass",

"port": 12345,

"token": "qclaw-relay"

}

},

"default": "192.168.1.7"

}

`

Agent should write to this file when deploying or when user provides new credentials.

Files In This Skill

| Path | Size | Purpose |

|------|------|---------|

| scripts/relay_client.py | 15KB | Main client: status, exec, deploy |

| scripts/config.template.json | 0.2KB | Config template |

| scripts/config.template.json | 0.2KB | Config template |

| scripts/pw_helper.py | 0.6KB | SSH password helper (Linux/macOS) |

| scripts/ssh_askpass.cmd | 0.03KB | SSH password helper (Windows) |

| SKILL.md | this file | Skill description |

Requirements

QClaw side (Windows):

  • Python 3
  • SSH client (built into Windows 10+)
  • No other dependencies

Kylin side:

  • SSH server (openssh-server)
  • Qt5 libraries: libqt5widgets5, libqt5network5, libqt5gui5

(deploy step [3/4] auto-installs these via apt if missing)

  • X11 display (:0) for the GUI (service runs headless if no display)

Protocol

TCP connection to port 12345, JSON messages separated by newline:

`

Client → {"type":"auth","token":"qclaw-relay"}

Server ← {"type":"auth_ok"}

Client → {"type":"exec","id":"abc123","command":"uname -a","timeout":30}

Server ← {"id":"abc123","type":"stdout","data":"Linux ...\n"}

Server ← {"id":"abc123","type":"exit","code":0}

`

Troubleshooting

  • "Not connected": qt-relay may have stopped. SSH in and restart: ~/qt-relay-project/qt-relay --bind 0.0.0.0 &
  • "Auth failed": Token mismatch. Check config or restart with --token qclaw-relay
  • Deploy fails: Check SSH connectivity first. Qt5 libs auto-install, but may need manual pt install if offline.
  • Missing display: If DISPLAY=:0 fails, service still starts but GUI won't show. Commands still work.
  • Need to change password: Edit ~/.qclaw/kylin-relay.json directly, or re-run deploy with new credentials.

版本历史

共 1 个版本

  • v1.0.0 功能特性: 🚀 一条命令部署:首次SSH上去塞个195KB的ARM64二进制,后续无需SSH ⚡ 即时连接:长连接复用,操作响应 <100ms,比SSH快一个量级 📦 自带ARM64二进制:预编译好直接传,无需目标机编译环境 🔄 多机管理:保存多台麒麟机器的配置,一键切换 🧩 QClaw原生集成:装成skill后直接说"连接麒麟"就完事 🔌 JSON结构化协议:{"command":"df -h","stdout":"...","exit_code":0},程序处理方便 当前
    2026-05-25 10:20 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

suspicious
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 323,975
ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,058 📥 797,759
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,353 📥 317,940