Skip to content
Back to skills

Tailnet Ssh

ASecurity

Run commands on machines reachable only inside a customer's Tailscale tailnet.

  • 843 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 11, 2026
ai-agentsbashnodeawsgcpdatabasebackend

Works with

  • cli

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned November 27, 2026

npx -y skills add nuphos/nuphos --skill tailnet-ssh --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tailnet Ssh?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Tailnet Ssh
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nuphos-tailnet-ssh/badge)](https://www.skillsdirectory.com/skills/nuphos-tailnet-ssh)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: tailnet-ssh
description: "Run commands on machines reachable only inside a customer's Tailscale tailnet."
---

# tailnet-ssh — reach machines inside a customer's private network

Use this skill when the target machine has **no public SSH** and lives in the
customer's own data centre or office, reachable only through their Tailscale
tailnet.

The sandbox joins the tailnet as an ephemeral node tagged with a tag the
customer controls, then SSH runs over that. The node disappears when the
session ends.

## When to skip this skill

- **Cloud VMs** → `aws-ec2-ssh` or `gcp-compute-engine-ssh`. They have better
  channels (SSM, IAP) that need no network membership at all.
- **Reading tailnet metadata** (devices, ACLs, DNS) → the `tailscale` skill.
  Do not join the tailnet just to list machines.
- **Databases on the tailnet** → the database tools already route through the
  backend's tailnet dialer. Do not SSH to run a query.

## Authorization model — read before troubleshooting

Three independent gates, all on the customer's side or the user's:

1. An administrator enabled **private network access** on the Tailscale binding
   in Nuphos, and chose the tag the sandbox advertises.
2. The binding is selected in **this session's credential selector**.
3. The customer's **tailnet ACL** grants that tag access to the target, and an
   `ssh` rule permits the login user.

Gate 3 is the real boundary and Nuphos cannot influence it. If a host is
unreachable, the ACL is the first thing to suspect — not the connection.

The sandbox connects as a **tagged node**, not as a person. Tailscale's
interactive `check` approval does not apply to tagged sources, so there is no
per-connection browser prompt on the customer's side. Where a human gate is
required it comes from Nuphos's own approval flow, and the customer's
enforceable control is session recording.

## Connect

```bash
bash skills/tailnet-ssh/scripts/connect.sh <teamId> <clientId>
```

Idempotent: safe to re-run, and a no-op once joined. It prints the reachable
peers with their tailnet addresses — use those, or the full `*.ts.net` name.
Short MagicDNS names do not resolve from the sandbox.

Then use plain SSH:

```bash
ssh deploy@100.101.102.103 'systemctl is-active nginx'
ssh deploy@web-01.tailnet-name.ts.net 'df -h'
```

Non-SSH tools can use the SOCKS5 proxy the script prints (default
`127.0.0.1:1055`), for example `curl --proxy socks5h://127.0.0.1:1055 …`.

## Never create SSH keys

Authentication is **Tailscale SSH**: the target authenticates this node's
tailnet identity, so there is no key to install and none to manage. If SSH asks
for a password or a key, that host does not have Tailscale SSH enabled — say so
and stop. Do not generate a keypair, do not ask the user for a private key, and
do not edit `authorized_keys` to work around it.

## Session recording may be mandatory

The customer's `ssh` rule can set `enforceRecorder`, which records every session
to a recorder inside their own network and **refuses the connection outright if
that recorder is unreachable**.

So a connection failing with a recorder error is infrastructure on their side,
not a permission problem. Report it as such. Never look for an unrecorded route
in — there isn't one, and trying is exactly the behaviour the control exists to
prevent.

## Troubleshooting

| Symptom | Cause |
|---|---|
| `tailscale_sandbox_access_disabled` | No administrator has enabled private network access on this binding. |
| `tailscale_client_agent_access_denied` | The binding is not selected in this session's credential selector. |
| `tailscale_auth_key_denied` | The customer's OAuth client lacks the `auth_keys` scope, or does not own the configured tag. |
| Joins, but no peers listed | The ACL grants this tag nothing. The customer needs a `grants` entry with this tag as `src`. |
| Peer listed, SSH times out | The ACL allows discovery but not port 22, or the host is not running tailscaled. |
| SSH asks for a password | Tailscale SSH is not enabled on that host. Do not fall back to keys. |
| `tailscaled did not start` | Re-run; if it persists, report it. Do not try to install a different networking mode — userspace is the only one the sandbox can use. |

## Disconnect

```bash
bash skills/tailnet-ssh/scripts/disconnect.sh
```

Rarely needed — the node is ephemeral and is reaped when the sandbox ends.

Files in this skill

  • SKILL.md4.5 KB
  • scripts/connect.sh5.7 KB
  • scripts/disconnect.sh773 B
  • scripts/install.sh1.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.