Host key verification failed

**CMK version: Checkmk Raw Edition 2.2.0p9
**OS version: Debian 11.7

**Error message: Agent exited with code 255: Host key verification failed.

I know that there are already posts regarding this issue, however nothing fixes my problem. I installed the Linux agent on a Synology Nas drive. I configured ssh successfully. I can submit the ssh command from the console manually: ssh checkmk_admin@$HOSTNAME$ /var/services/homes/checkmk_admin/check_mk_agent.linux. Everything works fine. When I try the same from checkmk the above error occurs. What I tried so far without success:

  • submit the command manually (as described above)
  • re-created hostkey
  • tried with dns name of the host
  • tried with ip address of the host

Any thoughs=

I had some issues in the past, and found the answer here on the forum.
As there is no refrence as to what you have tried or have not tried this was the solution for me:

ssh -l root -i /etc/check_mk/check_mk.key <ipaddress_of_host>
  • Glowsome
1 Like

Did you test the ssh-command as the site-user or as another os-user on the system? When checkmk is running that ssh-command it will be run as the site-user, so that user has to be made aware of the host-key.

Please make sure to follow all steps here (deep link with correct anchor):

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.