# Plugin Output Remote command execution failed: Host key verification failed

**URL:** <https://community.icinga.com/t/plugin-output-remote-command-execution-failed-host-key-verification-failed/3356>\
**Category:** Icinga 2\
**Created:** [January 30, 2020, 8:02am UTC](https://community.icinga.com/t/plugin-output-remote-command-execution-failed-host-key-verification-failed/3356 "2020-01-30T08:02:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sreekanth](https://community.icinga.com/user_avatar/community.icinga.com/sreekanth/32/1983_2.png) [@sreekanth](https://community.icinga.com/u/sreekanth)\
**Post date:** [January 30, 2020, 8:02am UTC](https://community.icinga.com/t/plugin-output-remote-command-execution-failed-host-key-verification-failed/3356/1 "2020-01-30T08:02:44Z")

</div>

Hi  
I am newbie to icinga.I have created icinga master and hosts  
checking the services by by\_ssh  
Getting plugin output in web as

“Plugin Output Remote command execution failed: Host key verification failed.”

icinga2 --version  
icinga2 - The Icinga 2 network monitoring daemon (version: 2.11.2-1)

Kind regards,  
Sreekanth

---

<div class="post-metadata">

**Author:** ![stevie-sy](https://community.icinga.com/letter_avatar_proxy/v4/letter/s/898d66/32.png) [@stevie-sy](https://community.icinga.com/u/stevie-sy)\
**Post date:** [January 30, 2020, 9:02am UTC](https://community.icinga.com/t/plugin-output-remote-command-execution-failed-host-key-verification-failed/3356/2 "2020-01-30T09:02:04Z")

</div>

Hi, to see would the problem could be, it would be interesting to see the host and service-defination.

---

<div class="post-metadata">

**Author:** ![homerjay](https://community.icinga.com/user_avatar/community.icinga.com/homerjay/32/377_2.png) [@homerjay](https://community.icinga.com/u/homerjay)\
**Post date:** [January 30, 2020, 9:12am UTC](https://community.icinga.com/t/plugin-output-remote-command-execution-failed-host-key-verification-failed/3356/3 "2020-01-30T09:12:48Z")

</div>

Hi.

This usually means, the there is a problem with trusting the host key of the target-system, where you are about to connect to.  
E.g., the host-key of the target system might have changed.

Please try to connect to the target host by the commandline, by ssh not the script (plugin), which usually shows you more informations about the problem and what you can do to solve it.

To (ssh) connect by the user nagios (on debian-based systems), who doesn’t have a login shell, so you could try:

```
sudo -u nagios bash
ssh <user_at_target>@<the.host.to.connect>
# e.g.: ssh distostu@my.funky.host

```

On non-debian-based systems, the user should be **icinga** , not nagios

---

<div class="post-metadata">

**Author:** ![dnsmichi](https://community.icinga.com/user_avatar/community.icinga.com/dnsmichi/32/7721_2.png) [@dnsmichi](https://community.icinga.com/u/dnsmichi)\
**Post date:** [January 30, 2020, 11:43am UTC](https://community.icinga.com/t/plugin-output-remote-command-execution-failed-host-key-verification-failed/3356/4 "2020-01-30T11:43:52Z")

</div>

Hi,

to add - I had updated the Agent based docs chapter for SSH a while ago, where this is mentioned explicitly as well. If you have additions, PRs are much appreciated 🙂  
[https://icinga.com/docs/icinga2/latest/doc/07-agent-based-monitoring/#ssh-preparations](https://icinga.com/docs/icinga2/latest/doc/07-agent-based-monitoring/#ssh-preparations)

Cheers,  
Michael

---

<div class="post-metadata">

**Author:** ![ls440](https://community.icinga.com/user_avatar/community.icinga.com/ls440/32/5923_2.png) [@ls440](https://community.icinga.com/u/ls440)\
**Post date:** [September 15, 2022, 5:11am UTC](https://community.icinga.com/t/plugin-output-remote-command-execution-failed-host-key-verification-failed/3356/5 "2022-09-15T05:11:26Z")

</div>

sudo su - icinga does not work. How to resolve the issue when using icinga director ?
