ATLAS PROTECT - FIX SSH ON THIS PC
==================================

WHAT THIS DOES
  Installs OpenSSH Server, generates the host keys sshd needs to start,
  locks port 22 to the Tailscale network ONLY (never the internet),
  installs the Atlas factory key, and starts sshd.

STEP 1 - OPEN POWERSHELL AS ADMINISTRATOR (important!)
  Press the Windows key, type:  powershell
  RIGHT-CLICK "Windows PowerShell"
  Click "Run as administrator"
  Click YES on the UAC prompt.
  (A normal PowerShell window will silently do nothing - it must be
   the ADMINISTRATOR one.)

STEP 2 - COPY THIS ONE LINE AND PRESS ENTER
  (Select the line below, Ctrl+C, then right-click inside the
   PowerShell window to paste, press Enter)

powershell -NoProfile -ExecutionPolicy Bypass -Command "Invoke-WebRequest -Uri 'https://atlas-server.taile9cc75.ts.net/releases/public/fix-ssh-v2.ps1' -OutFile $env:TEMP\fix-ssh-v2.ps1; & $env:TEMP\fix-ssh-v2.ps1"

STEP 3 - WHAT YOU SHOULD SEE AT THE END
  === RESULT ===
  SSHD status : Running
  Port 22     : True
  Key added   : ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGM7Xks4lASQeSHOLCefHSE7hT2UbTklaz2S8RxNP+5S
  User        : testb

  If instead you see "SSHD status : Stopped", copy the lines above
  that say SC_START= or EVENT: and send them to Atlas.

THAT'S IT. Tell Atlas the output and they will verify SSH from the server.