Window server monitor uses SSH to collect data.
c:/Program Files/OpenSSH-Win64
(or 32 depending on your download)Next run some of the Powershell scripts (as administrator) that are in the new folder to setup open ssh.
.\install-sshd.ps1
.\ssh-keygen.exe -A
# check that the setup is ok
.\FixHostFilePermissions.ps1
Now if you have firewall enabled you can add a firewall rule to allow connections via port 22.
22
Finally, edit the services to use a windows domain service account that is part of the PC’s administrator group.
OpenSSH
services.Start the services!
The services may fail to start. This is normal and some security points may need to be added to your administrator group.
See here for a list of specific security points to check.
Another guide to help with troubleshooting: https://hostadvice.com/how-to/how-to-install-an-openssh-server-client-on-a-windows-2016-server/
EAI_AGAIN
EAI_AGAIN error is a error in resolving the hostname. Either use IP addresses or update the host file on your server with the correct mapping (nano /etc/hosts
)