// Copyright (c) Tailscale Inc & AUTHORS // SPDX-License-Identifier: BSD-3-Clause import React from "react" import { PrefsUpdate } from "src/hooks/node-data" import Toggle from "src/ui/toggle" export default function SSHView({ readonly, runningSSH, updatePrefs, }: { readonly: boolean runningSSH: boolean updatePrefs: (p: PrefsUpdate) => Promise }) { 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 →

updatePrefs({ 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.

) }