tailscale icon indicating copy to clipboard operation
tailscale copied to clipboard

tailscale ssh is not working when built with ts_include_cli

Open SuperSandro2000 opened this issue 1 year ago • 2 comments

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 nc which 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

SuperSandro2000 avatar May 14 '24 12:05 SuperSandro2000

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"]

thenbe avatar May 15 '24 13:05 thenbe

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

cjshearer avatar Jun 29 '24 14:06 cjshearer

this also affects the openwrt package, fwiw

shaver avatar Aug 31 '24 13:08 shaver