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★ 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
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
- Read
Test Tailscale reachability before deep SSH debugging
- Fast path:
tailscale ping <ip-or-name>when availableping -c 1 100.x.y.znc -vz 100.x.y.z 22
- This separates “tailnet is broken/offline” from “tailnet works but SSH is broken”
- Fast path:
Try the simplest known-good SSH command
- Example:
ssh -o IdentitiesOnly=yes -i ~/.ssh/id_ed25519 [email protected]
- Example:
If SSH fails, classify fast by exact error text
Permission denied (publickey)→ key/auth problemOperation timed out/No route to host→ device offline, Tailscale broken, ACL, firewall, wrong IPHost key verification failed→ staleknown_hostsentry or rebuilt machineConnection 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 passwordnot in the sudoers file→ privilege problem; need another admin path
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
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:
- Confirm username from device notes
- Force the intended key:
ssh -o IdentitiesOnly=yes -i ~/.ssh/id_ed25519 [email protected]
- 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
- On macOS/Linux, verify ownership:
chown -R "$USER":$(id -gn) ~/.ssh
3) Connection refused
Check whether the host is up but SSH is close
Установить 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), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic