Linux command
tailscale-ssh 命令
网络
需要网络或远程资源。
常用示例
SSH to a Tailscale device
tailscale ssh [user]@[device]
SSH to a device using its Tailscale hostname
tailscale ssh [user]@[hostname]
SSH and run a remote command
tailscale ssh [user]@[device] [command]
SSH with verbose output
tailscale ssh -v [user]@[device]
说明
tailscale ssh connects to another machine on your Tailscale network using SSH, with authentication handled by Tailscale's identity system instead of traditional SSH keys or passwords. When Tailscale SSH is enabled on the target machine, connections are authenticated using the Tailscale identity of the connecting user. Access is controlled through Tailscale SSH ACLs in the admin console, allowing fine-grained rules about which users can access which machines and as which system users. The connection is encrypted end-to-end over the WireGuard tunnel that Tailscale establishes between nodes. This means SSH access works without exposing port 22 to the public internet and without managing SSH key distribution.
FAQ
What is the tailscale-ssh command used for?
tailscale ssh connects to another machine on your Tailscale network using SSH, with authentication handled by Tailscale's identity system instead of traditional SSH keys or passwords. When Tailscale SSH is enabled on the target machine, connections are authenticated using the Tailscale identity of the connecting user. Access is controlled through Tailscale SSH ACLs in the admin console, allowing fine-grained rules about which users can access which machines and as which system users. The connection is encrypted end-to-end over the WireGuard tunnel that Tailscale establishes between nodes. This means SSH access works without exposing port 22 to the public internet and without managing SSH key distribution.
How do I run a basic tailscale-ssh example?
Run `tailscale ssh [user]@[device]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more tailscale-ssh examples?
This page includes 4 examples for tailscale-ssh, plus related commands for nearby Linux tasks.