// Copyright (c) Tailscale Inc & AUTHORS // SPDX-License-Identifier: BSD-3-Clause import React from "react" import { NodeUpdaters } from "src/hooks/node-data" import Toggle from "src/ui/toggle" export default function SSHView({ readonly, runningSSH, nodeUpdaters, }: { readonly: boolean runningSSH: boolean nodeUpdaters: NodeUpdaters }) { return ( <>

Tailscale SSH server

Run a Tailscale SSH server on this device and allow other devices in your tailnet to SSH into it.{" "} Learn more →

nodeUpdaters.patchPrefs({ RunSSHSet: true, RunSSH: !runningSSH }) } disabled={readonly} />
Run Tailscale SSH server

Remember to make sure that the{" "} tailnet policy file {" "} allows other devices to SSH into this device.

) }