Choosing between Tailscale SSH and traditional SSH hardening is an architecture decision. Tailscale SSH moves authorization into your tailnet policy file and depends on Tailscale’s coordination server. A hardened OpenSSH setup keeps the whole trust chain on your own hosts. You pay for that with manual key, bastion, and config discipline. Below, each approach gets mapped to team topology, audit needs, and break-glass tolerance. Then both get compared against manual WireGuard, Teleport, Cloudflare Access, and OpenSSH with an SSH certificate authority (CA).
Quick verdict: Run Tailscale SSH alongside hardened OpenSSH, and keep both. Tailscale SSH handles day-to-day access well for small teams and homelabs that already run one tailnet. Keep a minimal, locked-down OpenSSH path for break-glass recovery, because that path doesn’t depend on Tailscale’s control plane. Go traditional-only (ideally with an SSH CA) if a third-party coordination server is off the table, or if your hosts can’t run Tailscale.
Overview
What We’re Comparing
| Option | What it is | Best for | Price |
|---|---|---|---|
| Tailscale SSH | SSH sessions authorized by tailnet ACL rules over WireGuard, with no per-server key distribution | Small teams and homelabs already on one tailnet | Free Personal tier; paid per user (pricing) |
| Hardened OpenSSH | Key-only auth, fail2ban, bastion/ProxyJump | Any host, any client, no third-party dependency | $0 (ships with the OS) |
| WireGuard (manual) | Same encrypted transport as Tailscale, with no hosted coordination server | People who want a private network without a SaaS control plane | Free, open source |
| Teleport | Identity-based access proxy for SSH, Kubernetes, and databases, with session recording and certificate auth | Larger, compliance-driven teams | Check vendor pricing |
| Cloudflare Access / Zero Trust | Browser- and identity-based access to internal services, including SSH | Teams already on Cloudflare | Check vendor pricing |
| OpenSSH + SSH CA (step-ca, Vault SSH) | Short-lived signed certificates, issued from infrastructure you host | Teams that want central revocation without SaaS | Free software; you run the CA |
Feature Comparison
| Feature | Tailscale SSH | Hardened OpenSSH | OpenSSH + SSH CA | Teleport | Cloudflare Access | WireGuard (manual) |
|---|---|---|---|---|---|---|
| Per-server key distribution needed | No | Yes | No (CA trust only) | No | No | Peer keys only |
| Third-party control plane | Yes (Tailscale) | No | No | Self-host or SaaS | Yes (Cloudflare) | No |
| Client must run an agent | Yes, or use the browser console | No | No | Yes | Varies | Yes |
| Works on any SSH-capable host | No (Linux/macOS w/ tailscaled; confirm current list) | Yes | Yes | Varies | Varies | Needs WireGuard |
| Session re-auth interval | check mode (all plans; custom checkPeriod on Premium/Enterprise) | No | Certificate TTL | Yes | Yes | No |
| Built-in browser SSH | Yes (SSH Console) | No | No | Yes | Yes | No |
Authorization Mechanics
Tailscale SSH: A Tailscale SSH connection needs two rules in the policy file:
- A network ACL rule that lets the source reach the destination on port 22.
- A separate
sshrule that names which local users the source may log in as.
Miss either rule and the connection is denied. Tailscale also never creates accounts, so the target user must already exist on the host.
// Tailnet policy file (HuJSON) — Admin console > Access controls
{
"groups": {
"group:admins": ["[email protected]", "[email protected]"]
},
"tagOwners": {
"tag:server": ["group:admins"]
},
"acls": [
// Rule 1: network-layer reachability on port 22
{ "action": "accept", "src": ["group:admins"], "dst": ["tag:server:22"] }
],
"ssh": [
// Rule 2: which local accounts the source may become
{
"action": "check", // "check" forces recent re-authentication; "accept" does not
"src": ["group:admins"],
"dst": ["tag:server"],
"users": ["ubuntu", "deploy"] // must be existing local accounts
}
]
}This example is illustrative — reconfirm exact field names and requirements against the policy file syntax reference before deploying it on a production tailnet.
With “action”: “check”
, the user must have signed in to your identity provider recently. Per the Tailscale SSH docs, you can tune the interval with checkPeriod. It takes values from 1 minute to 1 week, or "always" to re-check on every connection. The default is 12 hours.
Check mode itself works on every plan; only non-default check periods and localpart:*@domain email-to-username mapping are Premium/Enterprise (“Advanced Tailscale SSH”) features. Reconfirm current plan gating on the pricing page before you design around them.
Session recording is a separate feature, and its status has changed. Tailscale’s docs now mark tsrecorder-based Tailscale SSH session recording as deprecated: it’s no longer offered to new users, and support for existing users is scheduled to end in August 2027. Tailscale points new deployments to Tailscale PAM (Privileged Access Management), which its pricing page lists among the Enterprise platform extensions.
If you already run it, it needs a dedicated recorder node plus a recorder field in the ssh policy rule. Setting enforceRecorder: true blocks connections when no recorder is reachable.
This is distinct from the browser-based SSH Console, which lets you connect without a local client but doesn’t by itself record sessions. Check the session recording docs for the current deprecation timeline.
Hardened OpenSSH: Authorization is local. AuthorizedKeysFile or TrustedUserCAKeys handles keys. AllowUsers or AllowGroups limits which accounts can log in. PAM and the network path (a firewall or bastion) control who can connect at all. There’s no central policy unless you build one, usually with an SSH CA.
Winner: Tailscale SSH for central policy; OpenSSH for independence. One policy file beats editing authorized_keys on 40 hosts. That said, a self-hosted CA gets you most of that central control without an outside control plane.
Platform Support
Tailscale SSH: Destination hosts generally need the open-source tailscale/tailscaled CLI running on Linux or macOS; confirm the current supported host platforms in the Tailscale SSH docs before you plan around this. On macOS, use the open-source CLI build — the GUI-only Mac App Store app won’t work as a host. Synology and QNAP are explicitly unsupported.
A host reached only through a subnet router likely doesn’t qualify as a Tailscale SSH host, since Tailscale needs to run on the destination itself; verify this against the docs for your setup. This guide treats Windows machines as Tailscale SSH clients only, not hosts — reconfirm current Windows host support before assuming otherwise.
Hardened OpenSSH: It runs anywhere you can administer an OpenSSH server, which often includes legacy VMs and many NAS boxes. Some appliances and routers ship a restricted or non-OpenSSH shell, so check which hardening options yours actually exposes.
Winner: Hardened OpenSSH. It covers every host. Tailscale SSH covers only the hosts that run tailscaled.
Failure Modes and Break-Glass
Tailscale SSH: It depends on Tailscale’s coordination server and on a healthy local tailscaled. A control-plane outage mainly hits operations that need it: enrolling devices, pushing policy changes, and check re-authentication. Peers that already have current state may keep connecting. A broken client daemon, a bad upgrade, or an identity provider outage during a check re-auth can block the session. Watch security bulletins as part of your patch process. No specific bulletin is cited here.
Hardened OpenSSH: Its only dependencies are the host’s own sshd and your key material. It fails when you break it yourself, usually with a bad sshd_config edit that locks you out. Ask anyone who’s done it at 2 a.m.
Winner: Hardened OpenSSH. That independence is exactly why it stays useful as the break-glass path.
Audit and Compliance
Tailscale SSH: Policy changes live in one file, and the SSH Console can support audit needs. Don’t plan new audit workflows around tsrecorder session recording, though. Tailscale has deprecated it for new users, with existing-user support ending in August 2027. Its pricing page now places SSH recording under Privileged Access Management on the Enterprise tier.
Whether this meets your standard depends on where logs must live and who controls them.
Traditional / Teleport / SSH CA: These options keep logs inside your own pipeline. Teleport is built around certificate auth and session recording for compliance-heavy teams. step-ca or Vault SSH give you short-lived certificates and central revocation that you fully own.
Winner: Depends on the auditor. If logs and credential issuance must stay in-house, use an SSH CA or self-hosted Teleport.
The Traditional Hardening Baseline
Defaults differ by distro and OpenSSH version. Don’t trust a blog’s list of defaults, including this one. Check the effective values with sshd -T and the OpenSSH man pages.
Linux (Ubuntu/Debian)
Put your settings in a drop-in file. In most OpenSSH versions, sshd uses the first value it reads for a given directive, but confirm this behavior for your version with sshd -T.
On Ubuntu, sshd_config includes sshd_config.d/*.conf near the top, and files load in name order. Naming yours 10- lets it win over files like 50-cloud-init.conf, which sometimes turns passwords back on.
# /etc/ssh/sshd_config.d/10-hardening.conf
PubkeyAuthentication yes
PasswordAuthentication no
KbdInteractiveAuthentication no
PermitRootLogin no
AllowGroups ssh-users # create this group and add admins first
MaxAuthTries 3
X11Forwarding no
# Optional: trust certificates signed by your SSH CA
# TrustedUserCAKeys /etc/ssh/user_ca.pubWarning: Keep a second authenticated session open until you’ve tested a new login. Confirm that key auth works before you disable passwords, and that your user is in
ssh-users.
sudo groupadd -f ssh-users
sudo usermod -aG ssh-users "$USER"
getent group ssh-users # confirm your admin account is listed before you restart sshd
sudo sshd -t # syntax check; prints nothing on success
sudo sshd -T | grep -Ei '^(passwordauthentication|kbdinteractiveauthentication|permitrootlogin|pubkeyauthentication|allowgroups|maxauthtries)'Expected output (key order may differ):
maxauthtries 3
permitrootlogin no
pubkeyauthentication yes
passwordauthentication no
kbdinteractiveauthentication no
allowgroups ssh-usersIf you see passwordauthentication yes here, another drop-in got there first. Rename yours to sort earlier and check again.
# Ubuntu/Debian
sudo systemctl restart ssh
# RHEL, Rocky, AlmaLinux, Fedora
sudo systemctl restart sshdGroup membership only applies to new logins, so open a fresh SSH session (not your existing one) to confirm you can still get in before you close the session you kept open.
If port 22 faces the internet, add fail2ban to slow down brute-force attempts:
# /etc/fail2ban/jail.local
[sshd]
enabled = true
backend = systemd # journald-based distros (e.g., recent Debian) may not write /var/log/auth.log
maxretry = 5
bantime = 1hsudo apt install fail2ban
sudo systemctl restart fail2ban
sudo fail2ban-client status sshdNext, route access through one choke point with ProxyJump. Then swap static keys for short-lived certificates:
# ~/.ssh/config on the admin workstation
Host bastion
HostName bastion.example.com
User alice
Host 10.20.*
ProxyJump bastion # every internal host is reached via the bastion# Sign alice's key with the user CA; -I = cert identity, -n = allowed principals, -V = validity
ssh-keygen -s /secure/user_ca -I alice-cert -n alice -V +8h ~/.ssh/id_ed25519.pubFor the strongest client side, keep admin keys on a hardware security key such as a YubiKey. It works with ed25519-sk key types.
macOS
macOS ships OpenSSH, but remote login stays off until you turn it on. The config layout matches Linux: /etc/ssh/sshd_config plus /etc/ssh/sshd_config.d/.
sudo systemsetup -setremotelogin on
sudo sshd -t
sudo sshd -T | grep -Ei '^(passwordauthentication|permitrootlogin|pubkeyauthentication)'fail2ban is a Linux tool at heart. On a Mac host, the better move is usually to keep port 22 off the public internet entirely. Reach the Mac over the tailnet or a bastion instead.
Setting Up Tailscale SSH on Linux and macOS
The flow is the same on both platforms:
- Install the open-source
tailscale/tailscaledclient on the host. - Sign the host into your tailnet.
- Add both policy rules shown earlier.
- Enable Tailscale SSH on the host. Current releases expose this as the
--sshflag ontailscale setortailscale up. Confirm the exact command for your OS and version in the Tailscale SSH docs.
sudo tailscale set --ssh # flag syntax may vary by client version — confirm in current docs
tailscale status # confirm the host is online in the tailnetOn macOS, run the same commands from the open-source CLI build. The App Store app isn’t a supported Tailscale SSH host.
To connect from an authorized device, use the device name. The username must be an existing local account that your ssh rule permits.
The exact wrapper syntax can vary by client version, so confirm it in the docs before scripting around it:
ssh ubuntu@web-01
# or, using the Tailscale CLI wrapper (syntax may vary by version):
tailscale ssh ubuntu@web-01Can’t install a client? The SSH Console opens a browser session from the admin console.
Check your plan’s documentation to confirm console availability, since this can vary by tier. The target still needs both policy rules either way.
The Hybrid Pattern: Tailscale SSH Daily, OpenSSH for Break-Glass
Enabling Tailscale SSH does not appear to automatically close or replace a public sshd, based on current documentation. Tailscale handles SSH that arrives on the host’s tailnet address, while your existing OpenSSH daemon keeps listening wherever it was before, including the public interface.
Confirm this behavior for your OS and client version before relying on it — locking down the public listener yourself is the safer bet regardless.
So keep sshd hardened as shown above, then allow it only from a fixed break-glass source. That could be a bastion’s static IP, a management VPN, or an out-of-band network.
Warning: Firewall changes can lock you out. Run these from a console session or out-of-band access (IPMI, a cloud serial console), and test the break-glass login before you close the session.
# Ubuntu with ufw; 203.0.113.10 = your break-glass bastion's static IP
sudo ufw allow from 203.0.113.10 to any port 22 proto tcp comment 'break-glass'
sudo ufw delete allow OpenSSH # remove the old "allow from anywhere" rule, if present
sudo ufw status numberedNow each path has its own failure domain:
- Daily access goes through Tailscale SSH, with identity,
checkmode, and a central policy. - Emergency access goes through hardened OpenSSH from the bastion, using CA-signed or hardware-backed keys, with zero Tailscale dependency.
For a homelab, a Raspberry Pi with a static IP makes a cheap, isolated break-glass bastion. Put it and your core switch on a UPS so the recovery path survives a power blip.
Pricing Comparison
Reverify these figures at tailscale.com/pricing. Tailscale has restructured its plans over time, and legacy-plan tailnets may differ.
| Plan / option | Price | SSH-relevant notes |
|---|---|---|
| Tailscale Personal | $0 | Up to 6 users; basic Tailscale SSH (the pricing page lists up to 5 hosts) |
| Tailscale Standard | $8/user/month | Tailscale SSH included; replaces the Starter tier for new signups |
| Tailscale Premium | $18/user/month | Advanced SSH, custom checkPeriod, localpart mapping |
| Tailscale Enterprise | Custom | Advanced SSH, contract terms |
| Hardened OpenSSH | $0 | Your time is the cost |
| OpenSSH + step-ca / Vault SSH | Free software | You run and back up the CA |
| Teleport / Cloudflare Access | See vendor | Different control-plane trust models |
Decision Checklist
| Question | Points toward Tailscale SSH | Points toward traditional / self-hosted |
|---|---|---|
| Team topology | Everyone already on one tailnet; under ~6 users fits the free tier | Contractors, CI runners, or clients you can’t put on a tailnet |
| Compliance and audit | Central policy and Tailscale logging satisfy auditors | Logs and credential issuance must stay in-house (SSH CA, self-hosted Teleport) |
| Break-glass needs | You have a separate independent path (the hybrid pattern) | No second path exists, so OpenSSH must be primary |
| Third-party control plane | Acceptable dependency | Unacceptable by policy or threat model |
| Host fleet | Linux/macOS hosts that can run tailscaled | NAS (Synology/QNAP), appliances, hosts reachable only via a subnet router |
Which Should You Choose?
Choose Tailscale SSH (plus a break-glass path) if:
- Your admins already share a tailnet and you’re tired of handing out keys.
- You want identity-based re-auth (
checkmode) without building it yourself. - Your hosts are Linux or macOS and can run the open-source client.
Choose hardened OpenSSH if:
- Clients or automation can’t join a tailnet.
- You need access when no external service is reachable.
Choose OpenSSH + SSH CA if:
- You want short-lived credentials and central revocation without a SaaS control plane.
Choose Teleport if:
- You’re a larger team where session recording and certificate auth across SSH, Kubernetes, and databases are compliance requirements.
Choose Cloudflare Access if:
- You already run Cloudflare Zero Trust and prefer browser- and identity-based access.
Choose manual WireGuard if:
- You want a private overlay network without any coordination server, and you’re fine managing peer configs by hand.
Tailscale SSH
- No per-server key distribution
- A single policy file
checkmode for re-authentication- Browser SSH Console (confirm plan availability)
- Depends on the coordination server
- Destinations limited to Linux/macOS running
tailscaled - Advanced features gated to Premium/Enterprise
- Two-rule ACL model trips people up
Hardened OpenSSH
- Runs on every host
- No external dependency
- No per-seat cost
- Full local control
- Manual key rotation
- Bastion and fail2ban upkeep
- Config drift across hosts
- Easy to lock yourself out
OpenSSH + SSH CA
- Short-lived certificates
- Central revocation
- Self-hosted
- You operate the CA, and it becomes a critical asset
Teleport
- Strong recording and certificate model
- Heavier to deploy than this use case usually needs
Cloudflare Access
- Browser-based access tied to identity
- Swaps a Tailscale dependency for a Cloudflare one
WireGuard (manual)
- No control plane
- Fast transport
- No identity-aware ACLs
- Manual peer management
Final Verdict
Nothing here wins outright. Tailscale SSH is the better daily driver when your team and hosts fit its model. Hardened OpenSSH is still the base layer, because it’s the only option here that needs nothing beyond the host itself. The hybrid pattern scores highest because it keeps both strengths.
| Category | Hybrid | Tailscale SSH only | Hardened OpenSSH | OpenSSH + CA |
|---|---|---|---|---|
| Daily ergonomics | 9/10 | 9/10 | 6/10 | 7/10 |
| Independence / break-glass | 9/10 | 5/10 | 10/10 | 9/10 |
| Host coverage | 9/10 | 6/10 | 10/10 | 10/10 |
| Operational overhead | 7/10 | 8/10 | 5/10 | 6/10 |
| Overall | 9/10 | 7/10 | 7/10 | 8/10 |
These are editorial scores drawn from the trade-offs above. None of them come from benchmarks.
Frequently Asked Questions
Does enabling Tailscale SSH secure or replace my existing sshd?
No. OpenSSH keeps running and listening on its existing interfaces. Harden it and firewall it separately.
Why is my Tailscale SSH connection denied when the ACL looks right?
Usually one of the two rules is missing: either the port-22 network rule or the ssh rule. Also confirm the target user exists locally, and that the host runs Tailscale itself rather than sitting behind a subnet router.
Can I use Tailscale SSH on my Synology or QNAP?
No. Both are explicitly unsupported as Tailscale SSH hosts. Use hardened OpenSSH, or reach them from a supported intermediary host.
Wrapping Up
Run the checklist, use Tailscale SSH where your team and hosts fit, and keep a hardened OpenSSH path locked to a break-glass source. Check your OpenSSH settings with sshd -T instead of assuming. For most production setups, you’ll want both. The question worth asking is which path you trust when the other one is down.
| Step | Action | Applies To |
|---|---|---|
| 1 | Harden sshd with a drop-in file, then verify with sshd -T | Linux, macOS |
| 2 | Add fail2ban, a bastion/ProxyJump, and optionally an SSH CA | Linux |
| 3 | Add the port-22 ACL rule and the ssh rule, then enable Tailscale SSH | Linux, macOS |
| 4 | Restrict public port 22 to the break-glass source and test it | Linux, macOS |