Connect
sudo tailscale up
Connect and log in
sudo tailscale down
Disconnect from the tailnet
tailscale up --auth-key=<key>
Log in unattended with a key
tailscale up --ssh
Enable Tailscale SSH on this device
tailscale up --force-reauth
Force a new login
tailscale login
Log in without bringing it up
tailscale logout
Expire this device's login
tailscale switch <account>
Switch between accounts
tailscale switch --list
List logged-in accounts
tailscale version
Show client version
tailscale version --upstream
Show latest release
Reach peers
tailscale ping <host>
Test the path to a peer
tailscale ping --until-direct <host>
Ping until a direct path is found
tailscale ping -c 3 <host>
Send only 3 pings
tailscale ping --tsmp <host>
Ping at the Tailscale layer
tailscale ssh [user@]<host>
SSH over the tailnet
tailscale netcheck
Report NAT, UDP and relay latency
tailscale file cp <file> <host>:
Send a file to a peer
tailscale file get <dir>
Receive waiting files into a folder
tailscale file get --wait <dir>
Wait for incoming files
tailscale file cp --targets
List peers that can receive files
Share services
tailscale serve --bg <port>
Share a local port on your tailnet
tailscale serve --bg --https=443
localhost:<port>
Proxy a service over HTTPS
tailscale serve --set-path=/<path>
localhost:<port>
Mount a service under a path
tailscale serve --tcp=<port>
tcp://localhost:<port>
Forward raw TCP
tailscale serve status
Show what is shared
tailscale serve reset
Remove all serve config
tailscale funnel --bg <port>
Share a port on the public internet
tailscale funnel status
Show public shares
tailscale funnel reset
Stop all public sharing
tailscale cert <name>.ts.net
Get a Let's Encrypt certificate
tailscale cert --cert-file <f> --key-file <k>
<name>
Choose output file names
Exit nodes and routes
sudo tailscale set --advertise-exit-node
Offer this device as an exit node
tailscale exit-node list
List available exit nodes
tailscale exit-node suggest
Suggest the best exit node
sudo tailscale set --exit-node=<ip|name>
Route all traffic through a node
sudo tailscale set --exit-node=
Stop using an exit node
tailscale set --exit-node-allow-lan-access
Keep local network reachable
tailscale set --advertise-routes=<cidr>
Share a subnet with the tailnet
tailscale set --accept-routes
Use subnets others advertise
Advertised exit nodes and subnet routes must be approved in the
admin console before they take effect, and Linux routers need IP
forwarding.