brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: tailscale down pauses, tailscale logout makes the device log in again

Network and access
~/tips/tip-tailscale-logout-vs-down

sudo tailscale down

Pick the right command to disconnect, so you do not have to re-authenticate by accident.

Both commands disconnect you, so they look the same. They are not, and using the wrong one on a remote machine costs you a trip to its console.

tailscale down just disconnects. Your settings and the node key stay, and tailscale up reconnects without asking anything:

sudo tailscale down
sudo tailscale up

tailscale logout does more. The help text says it brings the network down and invalidates the current node key, so the next use requires authentication again:

sudo tailscale logout

down is what I’d use when you want Tailscale out of the way for a moment, for instance to test whether a problem comes from the VPN. logout is for when a device leaves for good, changes owner, or should move to another account.

Both have a risk on a server you reach through Tailscale: you lose the connection the moment you press Enter. The CLI can ask for confirmation when you are on a Tailscale SSH session, which is why the --accept-risk=lose-ssh option exists. Run it from a session that does not depend on the tailnet, or schedule a tailscale up afterwards.

After a logout the device still shows in the admin console until you remove it there.

Further reading: Tailscale CLI

Going deeper: Why a Tailscale device vanishes after 180 days, and how to stop it

More Network and access tips scp -3 alice@server-a:/var/backups/db.sql.gz bob@server-b:/srv/restore/ tailscale exit-node suggest tailscale lock sign nodekey:1abddef1 tlpub:abcdef12 wg genpsk > peer1.psk Table = off All Network and access tips (163) All topics

Link