← 返回
未分类 中文

Remote Node SSH

Run commands and transfer files between an OpenClaw gateway (VPS) and a paired local node via node protocol or SSH fallback. Covers transport selection, comm...
在OpenClaw网关(VPS)与配对的本地节点之间通过节点协议或SSH回退方式运行命令和传输文件。涵盖传输选择和通信...
jkfaris94 jkfaris94 来源
未分类 clawhub v1.0.1 1 版本 100000 Key: 无需
★ 0
Stars
📥 304
下载
💾 0
安装
1
版本
#latest

概述

Remote Node Exec

Run commands on a paired OpenClaw node from your gateway. Node protocol when connected, SSH when not.

> Setup: Node must be paired first. See hybrid-gateway.

Required Tools

This skill expects the following on your gateway machine:

  • ssh, scp, rsync — standard SSH tooling for fallback transport and file transfer
  • openclaw CLI — for node protocol commands and node status checks

Your remote node needs an SSH server running and an OpenClaw node agent paired to your gateway.

When to Use What

NeedTransport
-----------------
Run a commandexec host=node (node protocol)
Full shell env (brew, nvm, pyenv)SSH with shell rc sourcing
Transfer filesSSH (scp / rsync)
Node disconnectedSSH
Long-running taskSSH + nohup or tmux

Node Protocol

Fastest path. Routes through the gateway — no SSH keys needed.

exec host=node command="uname -a"

Caveat: Minimal PATH. Use full binary paths for package-manager-installed tools:

exec host=node command="/opt/homebrew/bin/python3 --version"

SSH Fallback

Use your SSH config alias (the hostname or alias you configured in your SSH config for the node).

ssh <node-alias> "whoami"

With full shell environment:

ssh <node-alias> "source ~/.profile 2>/dev/null; node --version"

File Transfer (SSH only)

# To node
scp file.txt <node-alias>:/tmp/

# From node
scp <node-alias>:/tmp/result.txt ./

# Sync a directory
rsync -avz ./data/ <node-alias>:~/data/

Check Node Status

openclaw nodes status

Disconnect Recovery

  1. Check: openclaw nodes status
  2. If disconnected, verify the node is reachable via SSH: ssh "echo ok"
  3. If reachable, restart the OpenClaw node service on the remote machine using its service manager
  4. Verify: openclaw nodes status

Constraints

  • Node protocol: no file transfer, no TTY/interactive sessions, minimal PATH
  • SSH: requires network reachability (LAN, Tailscale, or VPN)
  • Long tasks: use SSH + nohup/tmux to avoid timeouts

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-05-07 14:40 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

Free Ride - Unlimited free AI

shaivpidadi
管理OpenClaw的OpenRouter免费AI模型,自动按质量排名模型,配置速率限制备用方案,并更新opencla...
★ 471 📥 78,421
it-ops-security

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 90 📥 31,046
it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装后可防止您和您的用户受到提示注入、数据泄露及恶意行为的侵害。
★ 116 📥 31,004