diff --git a/cmd/tailscale/cli/ssh.go b/cmd/tailscale/cli/ssh.go index 24fb337f2..92bd42a10 100644 --- a/cmd/tailscale/cli/ssh.go +++ b/cmd/tailscale/cli/ssh.go @@ -22,6 +22,7 @@ "tailscale.com/envknob" "tailscale.com/ipn/ipnstate" "tailscale.com/net/tsaddr" + "tailscale.com/version" ) var sshCmd = &ffcli.Command{ @@ -32,6 +33,9 @@ } func runSSH(ctx context.Context, args []string) error { + if runtime.GOOS == "darwin" && version.IsSandboxedMacOS() && !envknob.UseWIPCode() { + return errors.New("The 'tailscale ssh' subcommand is not available on sandboxed macOS builds.\nUse the regular 'ssh' client instead.") + } if len(args) == 0 { return errors.New("usage: ssh [user@]") }