// Copyright (c) Tailscale Inc & AUTHORS // SPDX-License-Identifier: BSD-3-Clause import cx from "classnames" import React from "react" import { useAPI } from "src/api" import * as Control from "src/components/control-components" import { NodeData } from "src/types" import Card from "src/ui/card" import Toggle from "src/ui/toggle" export default function SSHView({ readonly, node, }: { readonly: boolean node: NodeData }) { const api = useAPI() 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 →

{!readonly ? ( ) : (
{node.RunningSSHServer ? "Running" : "Not running"}
)}
{node.RunningSSHServer && ( Remember to make sure that the{" "} tailnet policy file {" "} allows other devices to SSH into this device. )} ) }