I have tried many different SSH access control policies, including the examples, but I always get tailnet policy does not permit you to SSH to this node when attempting to use Tailscale SSH.
- I am the only user in the tailnet
- The server is owned and added by me
- Grants/ACLs are set up properly, and work with normal SSH connections
- I am attempting to connect as a normal, unprivileged user (not
root) - I have used
sudo tailscale set --sshon the server, and the green ssh tag does show next to the machine in the admin dashboard - Port 22 is allowed in the Tailscale zone of my firewall
Version info (exactly the same on client and server):
❯ tailscale --version
1.88.1
tailscale commit: 032962f4bc982fe8b6b58df01c33cf2904d07d67
long version: 1.88.1-t032962f4b-gc5ad3b22f
other commit: c5ad3b22fdb5813c46501f20144c6b29b61acf54
go version: go1.25.1
It does not work even with this policy file:
{
"grants": [
{
"src": ["*"],
"dst": ["*"],
"ip": ["*"]
}
],
"ssh": [
{
"action": "accept",
"dst": ["autogroup:self"],
"src": ["autogroup:member"],
"users": ["autogroup:nonroot"]
}
]
}
Output:
❯ ssh [redacted]@[machine name]
tailscale: tailnet policy does not permit you to SSH to this node
Connection closed by 100.88.147.107 port 22