Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

tailscale-operator

БесплатноБез исполняемых скриптовНе проверен

Manage, connect to, and troubleshoot devices on a Tailscale tailnet. Use when a user asks to connect to a device over Tailscale, find a device IP, SSH into a…

aAAaqwqот aAAaqwq★ 123 звезды на GitHub

Об этом скилле

Tailscale Operator

Author: Daniel Li
Copyright © Daniel Li. All rights reserved.

Use this skill for fast path tailnet ops: find the device, get connected, recover SSH, then solve permissions.

The goal is not to produce a long diagnosis. The goal is to restore a working remote path as fast as possible.

Default data sources

Check these first:

  • Shared tailnet inventory: /home/aa/.openclaw/shared/tailnet/README.md
  • Device records: /home/aa/.openclaw/shared/tailnet/devices/*.md
  • Local notes: /home/aa/.openclaw/workspace-ops/TOOLS.md

Treat the shared tailnet inventory as the source of truth for:

  • device aliases / nicknames
  • Tailscale IPs
  • SSH usernames
  • any known-good SSH command
  • platform notes (macOS/Linux, sudo caveats, network quirks)

If the user gives a nickname like 小m, studio, aa, or a human name tied to a device, first map it to a documented device record. If multiple matches are plausible, confirm before acting.

If the target device is not documented, say so clearly and ask for one of:

  • Tailscale IP
  • device name
  • SSH username
  • exact SSH command

Quickstart

When speed matters, default to this sequence:

# 1) find the documented device record first
# 2) test tailnet reachability

tailscale ping 100.x.y.z

# 3) try the known-good SSH path
ssh -o IdentitiesOnly=yes -i ~/.ssh/id_ed25519 [email protected]

# 4) verify identity once in
ssh -o IdentitiesOnly=yes -i ~/.ssh/id_ed25519 [email protected] 'hostname; whoami; uname -a'

If step 2 fails, fix Tailscale first. If step 2 works but step 3 fails, fix SSH auth / sshd / Tailscale SSH.

Core workflow

Decision tree

  1. Resolve the target device first

    • Read shared/tailnet/devices/*.md
    • Prefer the documented SSH command exactly as stored
    • Do not improvise usernames or addresses until the inventory has been checked
  2. Test Tailscale reachability before deep SSH debugging

    • Fast path:
      • tailscale ping <ip-or-name> when available
      • ping -c 1 100.x.y.z
      • nc -vz 100.x.y.z 22
    • This separates “tailnet is broken/offline” from “tailnet works but SSH is broken”
  3. Try the simplest known-good SSH command

  4. If SSH fails, classify fast by exact error text

    • Permission denied (publickey) → key/auth problem
    • Operation timed out / No route to host → device offline, Tailscale broken, ACL, firewall, wrong IP
    • Host key verification failed → stale known_hosts entry or rebuilt machine
    • Connection refused → sshd not listening, Tailscale SSH not enabled, firewall, wrong port
    • asks for password but none known → key missing, wrong user, or password auth fallback
    • sudo: a password is required → account has sudo but needs password
    • not in the sudoers file → privilege problem; need another admin path
  5. Apply the fastest safe fix

    • Fix host key mismatch
    • Try documented alternate username if one exists
    • Install public key on remote account
    • Use Tailscale SSH if ordinary SSH is the blocker and the tailnet policy allows it
    • For permissions, prefer an existing admin account over changing system policy
  6. Verify and leave a stable path

    • Re-test SSH
    • Confirm the remote host identity: hostname; whoami; uname -a
    • If a new working path was discovered, record it in the device note

Fast fixes by failure mode

Error → fastest next command

Failure mode Likely cause Fastest next command
Host key verification failed stale host key ssh-keygen -R 100.x.y.z
Permission denied (publickey) wrong user/key or missing public key ssh -o IdentitiesOnly=yes -i ~/.ssh/id_ed25519 [email protected]
timeout / No route to host node offline / Tailscale broken / wrong IP tailscale ping 100.x.y.z
Connection refused SSH service closed / disabled nc -vz 100.x.y.z 22
asks for password unexpectedly key auth not working cat ~/.ssh/id_ed25519.pub
sudo: a password is required sudo works but needs password stop and ask for the admin password
not in the sudoers file wrong account / no admin rights switch to an existing admin account

Then follow the detailed branch below.

1) Host key verification failed

Use:

ssh-keygen -R 100.x.y.z
ssh-keygen -R hostname

Then reconnect.

2) Permission denied (publickey)

Try, in order:

  1. Confirm username from device notes
  2. Force the intended key:
ssh -o IdentitiesOnly=yes -i ~/.ssh/id_ed25519 [email protected]
  1. If you already have another path onto the machine, install your key:
mkdir -p ~/.ssh && chmod 700 ~/.ssh
echo 'YOUR_PUBLIC_KEY' >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
  1. On macOS/Linux, verify ownership:
chown -R "$USER":$(id -gn) ~/.ssh

3) Connection refused

Check whether the host is up but SSH is close

Полный SKILL.md на GitHub

Установить tailscale-operator в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл tailscale-operator?

Manage, connect to, and troubleshoot devices on a Tailscale tailnet. Use when a user asks to connect to a device over Tailscale, find a device IP, SSH into a tailnet node, fix SSH auth failures, set up public-key login, enable Tailscale SSH, diagnose permission or sudo issues, or operate remote Macs/Linux hosts over the tailnet.

Как установить скилл tailscale-operator?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл tailscale-operator запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить tailscale-operator с