← Back to library

远程 macOS+WSL 首次接入:把 token/pairing/SSH 流程拆成可回归清单

解决远程 onboarding 在 token、pairing 与 SSH 路径上反复失败。前置:有 Windows+WSL 与远程 macOS 访问权限。步骤:先验证 gateway 可达,再按顺序完成 token 与 pairing,最后接入 SSH 执行动作并做端到端回归。关键命令:openclaw gateway status、openclaw devices list。验证:跨机命令可稳定往返且不再重复触发 pairing required。风险:token 泄露。

GITHUBDiscovered 2026-02-15Author memphislee09-source
Prerequisites
  • You operate a mixed environment (Windows+WSL control side, remote macOS target) and can access both hosts.
  • Gateway token is generated and can be rotated if exposed.
Steps
  1. Verify gateway reachability from both WSL and macOS before onboarding (openclaw gateway status).
  2. Complete pairing first, then validate paired device visibility (openclaw devices list).
  3. Only after pairing succeeds, configure SSH/tool execution path to remote host.
  4. Run a checklist regression: reconnect after restart, run one tool call, and confirm no re-pair prompt.
Commands
openclaw gateway status
openclaw devices list
openclaw gateway restart
Verify

After restart, remote command execution still works and pairing state stays valid.

Caveats
  • Do not embed token in shell history or shared dotfiles.
  • Network path differences (Tailscale/LAN/VPN) can alter handshake behavior and should be tested separately(需验证).
Source attribution

This tip is aggregated from community/public sources and preserved with attribution.

Open original source ↗
Visit original post