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 whoami shows which account and device you are on

Network and access
~/tips/tip-tailscale-whoami

tailscale whoami

Check the logged-in user and machine name before you change tailnet settings.

With more than one tailnet or a shared machine, I think it is easy to lose track of who this device is logged in as. tailscale whoami answers that in one line.

tailscale whoami

It prints the machine and the user for the current device. The help text explains it is the same as running tailscale whois against your own Tailscale IP, without having to look up that IP first.

For scripts there is a JSON version:

tailscale whoami --json

Where it helps: before running tailscale set with something like an exit node or advertised routes, check you are on the account you think you are. It also helps on a server that was set up by someone else, or one with a tag, where the owner is the tag rather than a person.

An older client may not know this subcommand yet. Then tailscale whois with the address from tailscale ip -4 gives you the same answer, and tailscale switch --list shows every account the device knows.

Further reading: Tailscale CLI

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