Linux command
tailscale 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Connect to network
tailscale up
Disconnect
tailscale down
Show status
tailscale status
Show IP addresses
tailscale ip
Ping node
tailscale ping [hostname]
SSH to node
tailscale ssh [user@hostname]
Share file
tailscale file cp [file] [hostname:]
Receive files
tailscale file get [download_dir]
说明
tailscale creates encrypted mesh networks. Devices connect directly using WireGuard, without central servers forwarding traffic. Authentication uses SSO providers. After login, devices join your tailnet (Tailscale network). Each device gets a stable IP. MagicDNS provides hostnames for devices. SSH integration enables authentication without managing keys. File sharing transfers directly between devices. No cloud storage is involved - files go peer-to-peer. Exit nodes route traffic through specific devices. This enables secure internet access through trusted locations. Funnel exposes services to the internet. Serve provides quick HTTP/HTTPS serving with automatic certificates.
参数
- up
- Connect to Tailscale.
- down
- Disconnect.
- status
- Show network status.
- ip _-4_ _-6_
- Show IP addresses.
- ping _HOST_
- Ping a Tailscale node.
- ssh _TARGET_
- SSH to node.
- file cp _FILES_ _TARGET:_
- Copy files.
- file get _DIR_
- Receive files.
- cert _DOMAIN_
- Get TLS certificate.
- funnel
- Expose to internet.
- serve
- Serve content.
- logout
- Log out.
- --accept-routes
- Accept subnet routes.
- --advertise-routes _ROUTES_
- Advertise routes.
- --exit-node _NODE_
- Use exit node.
FAQ
What is the tailscale command used for?
tailscale creates encrypted mesh networks. Devices connect directly using WireGuard, without central servers forwarding traffic. Authentication uses SSO providers. After login, devices join your tailnet (Tailscale network). Each device gets a stable IP. MagicDNS provides hostnames for devices. SSH integration enables authentication without managing keys. File sharing transfers directly between devices. No cloud storage is involved - files go peer-to-peer. Exit nodes route traffic through specific devices. This enables secure internet access through trusted locations. Funnel exposes services to the internet. Serve provides quick HTTP/HTTPS serving with automatic certificates.
How do I run a basic tailscale example?
Run `tailscale up` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does up do in tailscale?
Connect to Tailscale.