The following is for Windows 11 and an administrator
It is based on OSHub configuring SSH and on configuring for windows

You must have the same account credentials on all systems. If your username is AAA and your password is BBB on the controlling PC, then the same AAA and BBB must be on all remote systems.


Do the following on your control PC

  • Bring up services and set OpenSSH agent for automatic start.
  • Start the agent.
  • Create a script folder.
  • Create your keys.
  • Add your private key to the agent.
  • Copy the public key to a USB flash.
  • Rename the key to administrators_authorized_keys.
  • Install that key on each remote server.

Bring up the windows command prompt and copy and paste the following commands

mkdir %USERPROFILE%\scripts
ssh-keygen -t ed25519 -a 32 -f %USERPROFILE%/scripts/%COMPUTERNAME%
ssh-add %USERPROFILE%/scripts/%COMPUTERNAME%
ren %USERPROFILE%/scripts/%COMPUTERNAME %USERPROFILE%/scripts/administrators_authorized_keys
echo copy that file to your USB flash



Do the following on each remote system.


Ensure that networking (file sharing) is enabled on the remote Windows PC (the server).
OpenSSH server must be installed in Windows 11 using Add Optional Features
  • Go to Settings > System > Optional features and click on View features.
  • Locate 'OpenSSH server' feature, select it, click Next, and then click Add.
Bring up services and set both the OpenSSH agent and the server to automatic start
Start both the agent and the server

Bring up the administrators command prompt.
Go to c:\programdata\ssh and edit sshd_config to add the following three items

PasswordAuthentication yes
PubkeyAuthentication yes
StrictModes no

Using the USB flash, copy your public key to the ssh folder and run the following command

icacls.exe "C:\ProgramData\ssh\administrators_authorized_keys" /inheritance:r /grant "Administrators:F" /grant "SYSTEM:F"

Restart OpenSSH with the following commands

net stop sshd
net start sshd



Try to log in without using a password from the control PC.
You will have to answer yes to a question but only once to accept the key.

ssh name_of_remote_server
---
---
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes


Example commands from the control PC

To shutdown the PC 'Shire2'
ssh Shire2 "shutdown /s /f /t 0"


To update the all projects file from the control PC
scp C:\ProgramData\BOINC\all_projects_list.xml Shire2:C:\ProgramData\BOINC\all_projects_list.xml

Example of gpugrid update


Tested on 6 remote systems, one was windows 10 22H2 the others win11. Only 1 control PC was setup. Let me know if there is a problem. Also let me know if there is a way to avoid all systems having the same exact credentials.