Enable SSH on remote machines so they can be registered with register_member.
Windows is the most involved. Run all commands in PowerShell as Administrator.
# Check if already installed
Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH.Server*'
# Install it
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0Or: Settings > Apps > Optional Features > Add a feature > OpenSSH Server.
Start-Service sshd
Set-Service -Name sshd -StartupType AutomaticThe installer usually creates this, but verify:
# Check
Get-NetFirewallRule -Name *ssh*
# Create if missing
New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH Server (sshd)' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22If your user is in the Administrators group, SSH ignores ~/.ssh/authorized_keys. Keys must go in:
C:\ProgramData\ssh\administrators_authorized_keys
And the file needs restricted permissions:
# Add your public key
Add-Content C:\ProgramData\ssh\administrators_authorized_keys "ssh-ed25519 AAAA... you@host"
# Fix permissions (must be owned by SYSTEM/Administrators only)
icacls C:\ProgramData\ssh\administrators_authorized_keys /inheritance:r /grant "SYSTEM:(F)" /grant "Administrators:(F)"From another machine:
ssh user@windows-host "echo ok"System Settings > General > Sharing > Remote Login (toggle on).
Or via terminal:
sudo systemsetup -setremotelogin onssh user@mac-host "echo ok"sudo apt install openssh-server
sudo systemctl enable --now sshssh user@linux-host "echo ok"Usually pre-installed. Just confirm it's running:
sudo systemctl status sshdIf not running:
sudo systemctl enable --now sshd| Symptom | Cause | Fix |
|---|---|---|
| Connection refused | sshd not running | Start the service (see above) |
| Permission denied | Wrong password or key not deployed | Check ~/.ssh/authorized_keys on target; on Windows admin users, check administrators_authorized_keys (see above) |
| Connection timed out | Firewall blocking port 22 | Add inbound rule for TCP/22 |
| Windows: key auth not working for admin user | Keys in ~/.ssh/authorized_keys are ignored for admin accounts |
Move keys to C:\ProgramData\ssh\administrators_authorized_keys and fix permissions |
| Host key verification failed | Host key changed (reinstall, new machine) | ssh-keygen -R <host> to clear old key |