← 返回
未分类 中文

connect-to-another-openclaw

Connect to and manage another OpenClaw server remotely. Check status, sync skills, restart gateway, and monitor channels.
远程连接并管理另一台 OpenClaw 服务器,检查状态、同步技能、重启网关、监控频道。
fangbb-coder
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 351
下载
💾 0
安装
1
版本
#latest

概述

Connect to Another OpenClaw

What This Skill Does

Provides a unified interface to connect to a remote OpenClaw server via SSH, perform health checks, manage skills, and troubleshoot common issues like port conflicts.

Prerequisites

  1. SSH Access to the remote machine:
    • SSH private key file (recommended) OR password access
    • Remote user must have sudo/root privileges
    • Remote machine must have OpenClaw installed
  2. SkillHub on both local and remote (for skill sync)
  3. Network connectivity (port 22 SSH)

Primary Workflow

1. Connect and Check Status

connect-openclaw --host <your-remote-host> --action status

Important: Replace with your actual remote server IP or domain (e.g., 192.168.1.100 or myserver.com). This is a required placeholder.

This will:

  • Test SSH connectivity
  • Check OpenClaw Gateway status
  • List active channels (QQBot, etc.)
  • Show recent sessions

2. Fix Common Issues

connect-openclaw --host <your-remote-host> --action fix-port

Automatically:

  • Detect port conflicts on gateway port (default 18790)
  • Kill conflicting processes (SSH tunnels, test services)
  • Restart OpenClaw gateway
  • Verify recovery

3. Sync Skills

# See differences
connect-openclaw --host <your-remote-host> --action diff

# Install remote's missing skills to local
connect-openclaw --host <your-remote-host> --action sync-to-local

# Install local's missing skills to remote (if remote has SkillHub)
connect-openclaw --host <your-remote-host> --action sync-to-remote

4. Send Message via Remote QQBot

connect-openclaw --host <your-remote-host> --action send-qqbot \
  --session "agent:main:qqbot:direct:..." \
  --message "Hello from local OpenClaw"

Commands Reference

CommandDescription
----------------------
statusFull health check of remote OpenClaw
fix-portAuto-fix port 18790 conflicts
diffCompare local vs remote skills
sync-to-localInstall remote-only skills to local
sync-to-remotePush local-only skills to remote
list-skillsList all skills on remote
list-channelsList configured channels
list-sessionsShow active sessions
tail-logsTail OpenClaw logs filtered by channel
test-connectionSimple SSH test

Configuration

The skill uses these environment variables (optional):

VariablePurposeDefault
----------------------------
CONNECT_OPENCLAW_SSH_KEYPath to SSH private key~/.ssh/id_rsa
CONNECT_OPENCLAW_USERRemote usernameroot
CONNECT_OPENCLAW_PORTSSH port22
CONNECT_OPENCLAW_GATEWAY_PORTRemote OpenClaw port18790

You can also pass these as CLI flags:

connect-openclaw --host example.com --user admin --key ~/.ssh/mykey.pem --action status

Examples

Quick diagnostic

connect-openclaw --host <your-remote-host> --action status

Fix port conflict and restart

connect-openclaw --host <your-remote-host> --action fix-port

Compare skills before syncing

connect-openclaw --host <your-remote-host> --action diff

One-way sync (remote → local)

connect-openclaw --host <your-remote-host> --action sync-to-local

Installation

If not already installed, run:

skillhub install Connect_to_another_openclaw

Or clone this repository to ~/.openclaw/workspace/skills/Connect_to_another_openclaw/.

Requirements

  • Python 3.9+ (or Node.js version if implemented in JS)
  • paramiko (Python SSH library) or native ssh command
  • Access to remote shell

Troubleshooting

ProblemSolution
-------------------
SSH connection failedCheck key permissions (chmod 600), network, and authorized_keys
SkillHub not found on remoteInstall SkillHub on remote first
Permission deniedEnsure remote user has sudo/root and correct key
Port still in use after fixManually check with lsof -i :18790 and kill processes

Notes

  • Always test with --action test-connection first
  • fix-port will kill processes matching ssh -N.*18790 and voice-bridge-light
  • Skill sync uses SkillHub CLI; ensure it's installed on both sides
  • For safety, sync-to-remote prompts before each installation (use --yes to auto-confirm)

Version: 1.0.0

Author: 小李 (基于 2026-03-28 实践经验)

License: MIT

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 12:28 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

deerflow-install-master

fangbb-coder
DeerFlow 2.0 一键安装与配置技能。基于实际部署经验(2026‑03‑29),覆盖从仓库下载到成功运行的全流程,含避坑指南。适用场景:(1) 在 OpenClaw 环境安装 DeerFlow 2.0;(2) 快速排查安装问题;(3
★ 1 📥 667

session-compactor

fangbb-coder
自动压缩会话,保留工具调用和关键信息,降低 token 消耗,适用于长对话。算法参考 claw-code compact.rs。
★ 0 📥 421

Voice Bridge Light

fangbb-coder
提供兼容OpenAI接口的轻量级本地STT(Whisper)和TTS(Edge TTS/Piper)语音桥接HTTP服务。
★ 0 📥 554