tailscale
tailscale copied to clipboard
tailscale ssh is not working when built with ts_include_cli
What is the issue?
When tailscale is built with the ts_include_cli tag and the tailscaled binary is symlinked to tailscale (https://tailscale.com/kb/1207/small-tailscale), tailscale ssh fails like:
$ tailscale ssh host -v
...
debug1: Local version string SSH-2.0-OpenSSH_9.7
2024/05/12 22:57:44 tailscaled does not take non-flag arguments: ["nc" "host" "22"]
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535
Steps to reproduce
- build tailscaled with ts_include_cli tag
- symlink tailscale to tailscaled
- run tailscale ssh
- see that it tries to execute
tailscaled ncwhich doesn't exist
Are there any recent changes that introduced the issue?
I think that never worked
OS
Linux
OS version
NixOS unstable
Tailscale version
1.66.1
Other software
No response
Bug report
No response
I can reproduce this issue on nixos.
$ tailscale ssh user@host
2024/05/15 16:08:39 tailscaled does not take non-flag arguments: ["nc" "host.tail123ab.ts.net." "22"]
Another repro on NixOS, for what it's worth
$ tailscale ssh user@host
2024/06/29 10:43:56 tailscaled does not take non-flag arguments: ["nc" "my.tailscale.ts.net." "22"]
Connection closed by UNKNOWN port 65535
this also affects the openwrt package, fwiw