Issue: After the RackWare MSI has been installed, the initial sync of a Windows host fails with an ssh connection failure. When trying to ssh from the RMM to the windows host, the ssh attempt fails.
Workaround:
There are a few different reasons why the ssh attempt might fail.
If the ssh attempt is failing with a 'permission denied' message, then check the following:
- be sure that when you copy the RMM's ssh key to the "RMM SSH Key" field during the MSI installation, you copy/paste the entire key (with no extra spaces or other characters), in a single copy/paste operation. If you need to reinstall the MSI, be sure you uninstall the existing RackWare MSI first. See section 7.3.2 of the RMM v7.4 Prerequisites and Operational Requirements guide at https://rackware.freshdesk.com/a/solutions/articles/5000859681 for instructions on uninstalling the MSI package.
- be sure that the username you are using when attempting the ssh operation is the same one you used in the Username field during the MSI installation. Please keep in mind that the username is case-sensitive.
If the ssh attempt is failing because even when using the username specified during the MSI installation, you are prompted for a password for the user then check the following:
- verify with the administrator of the Windows server that no other services on the Windows server are using port 22. For example, on some Windows servers, openssh may be installed and using port 22. If some other program is using port 22 already, then either:
stop the other program/service that is using port 22
or
uninstall the existing RackWare MSI and then reinstall it using a different port instead of using Port 22. On this screen enter a port number other than the default port number of 22. For example, use port 2022. Once the MSI installation is complete, test that passwordless ssh is working by using the -p option of the ssh command, for example
"ssh -p 2022 <username>@<ip address>".
Also, on the Sync Options tab for the sync on the RMM GUI, fill in the SSH Port field with the port number you are using for ssh instead of the default value of 22.