# Host key verification failed.

**URL:** <https://community.zeek.org/t/host-key-verification-failed/4226>\
**Category:** Zeek\
**Created:** [July 4, 2016, 10:53am UTC](https://community.zeek.org/t/host-key-verification-failed/4226 "2016-07-04T10:53:52Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maxime\_Lambert](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@Maxime\_Lambert](https://community.zeek.org/u/Maxime_Lambert)\
**Post date:** [July 4, 2016, 10:53am UTC](https://community.zeek.org/t/host-key-verification-failed/4226/1 "2016-07-04T10:53:52Z")

</div>

Hi !

I don’t understand why Bro didn’t work,could you help me ?

> Ubuntu@Ubuntu:~/bro-2.4.1$ sudo /opt/bro/bin/broctl  
> Warning: state database needs updating (run the broctl “deploy” command)  
>   
>   
>   
> Welcome to BroControl 1.4  
>   
>   
>   
> Type “help” for help.  
>   
>   
>   
> [BroControl] \> install  
> removing old policies in /opt/bro/spool/installed-scripts-do-not-touch/site …  
> removing old policies in /opt/bro/spool/installed-scripts-do-not-touch/auto …  
> creating policy directories …  
> installing site policies …  
> generating standalone-layout.bro …  
> generating local-networks.bro …  
> generating broctl-config.bro …  
> generating broctl-config.sh …  
> updating nodes …  
> **Host key verification failed.**  
> **Error: cannot create (some of the) directories /opt/bro,/var/log/bro,/opt/bro/spool,/opt/bro/spool/tmp on node bro**  
> |
> 
> - |

I’ve installed Bro from tar.gz with :

Ubuntu@Ubuntu:~/bro-2.4.1$ ./configure --prefix=/opt/bro --logdir=/var/log/bro  
Ubuntu@Ubuntu:~/bro-2.4.1$ make

Ubuntu@Ubuntu:~/bro-2.4.1$ sudo make install

And my conf is :  
networks.cfg  
W.W.W.W/24 Private IP space  
Y.Y.Y.Y/24 Private IP space

nodes.cfg  
[bro]  
type=standalone  
host=localhost  
interface=eth1

**Thank you for your help,**

**Regards,**

**Maxime Lambert**

---

<div class="post-metadata">

**Author:** ![Daniel\_Thayer](https://avatars.discourse-cdn.com/v4/letter/d/8dc957/32.png) [@Daniel\_Thayer](https://community.zeek.org/u/Daniel_Thayer)\
**Post date:** [July 5, 2016, 6:21pm UTC](https://community.zeek.org/t/host-key-verification-failed/4226/2 "2016-07-05T18:21:10Z")

</div>

In BroControl, what is the output of the "nodes" command?  
Also, what is the output of the "status" command?

---

<div class="post-metadata">

**Author:** ![Sven\_Dreyer](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@Sven\_Dreyer](https://community.zeek.org/u/Sven_Dreyer)\
**Post date:** [July 5, 2016, 6:26pm UTC](https://community.zeek.org/t/host-key-verification-failed/4226/3 "2016-07-05T18:26:59Z")

</div>

Did you try unsetting the LANG variable?

sudo LANG= /opt/bro/bin/broctl

(mind the blank after the "=".)

Best regards,  
Sven

---

<div class="post-metadata">

**Author:** ![Daniel\_Thayer](https://avatars.discourse-cdn.com/v4/letter/d/8dc957/32.png) [@Daniel\_Thayer](https://community.zeek.org/u/Daniel_Thayer)\
**Post date:** [July 5, 2016, 7:30pm UTC](https://community.zeek.org/t/host-key-verification-failed/4226/4 "2016-07-05T19:30:53Z")

</div>

This issue was fixed a long time ago, but I just remembered that  
the fix was not included in the Bro 2.4.1 release. It will be  
included in the next release, however.

---

<div class="post-metadata">

**Author:** ![Maxime\_Lambert](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@Maxime\_Lambert](https://community.zeek.org/u/Maxime_Lambert)\
**Post date:** [July 6, 2016, 6:23am UTC](https://community.zeek.org/t/host-key-verification-failed/4226/5 "2016-07-06T06:23:20Z")

</div>

Hi Daniel,

That's :  
[BroControl] \> nodes  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bro - addr=::1 aux\_scripts= brobase= count=1 env\_vars= ether= host=localhost interface=eth1 lb\_interfaces= lb\_method= lb\_procs= name=bro pin\_cpus= test\_mykey= type=standalone zone\_id=

And :  
[BroControl] \> status  
Getting process status ...  
Getting peer status ...  
Name Type Host Status Pid Peers Started  
bro standalone localhost stopped

Best regards,

Maxime Lambert

----- Mail original -----

---

<div class="post-metadata">

**Author:** ![Maxime\_Lambert](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@Maxime\_Lambert](https://community.zeek.org/u/Maxime_Lambert)\
**Post date:** [July 6, 2016, 6:25am UTC](https://community.zeek.org/t/host-key-verification-failed/4226/6 "2016-07-06T06:25:35Z")

</div>

Hi Sven,

That's the result :

Ubuntu@Ubuntu:~$ sudo LANG= /opt/bro/bin/broctl  
Warning: state database needs updating (run the broctl "deploy" command)

Welcome to BroControl 1.4

Type "help" for help.

[BroControl] \> deploy  
checking configurations ...  
installing ...  
removing old policies in /opt/bro/spool/installed-scripts-do-not-touch/site ...  
removing old policies in /opt/bro/spool/installed-scripts-do-not-touch/auto ...  
creating policy directories ...  
installing site policies ...  
generating standalone-layout.bro ...  
generating local-networks.bro ...  
generating broctl-config.bro ...  
generating broctl-config.sh ...  
updating nodes ...  
stopping ...  
bro not running  
starting ...  
starting bro ...  
bro terminated immediately after starting; check output with "diag"  
[BroControl] \> status  
Getting process status ...  
Getting peer status ...  
Name Type Host Status Pid Peers Started  
bro standalone localhost crashed

Best regards,

Maxime Lambert

----- Mail original -----

---

<div class="post-metadata">

**Author:** ![Maxime\_Lambert](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@Maxime\_Lambert](https://community.zeek.org/u/Maxime_Lambert)\
**Post date:** [July 6, 2016, 6:28am UTC](https://community.zeek.org/t/host-key-verification-failed/4226/7 "2016-07-06T06:28:56Z")

</div>

Sorry, I forget :

After the sudo LANG= ... command :

[BroControl] \> diag  
[bro]

Bro 2.4.1  
Linux 4.4.0-21-generic

No gdb installed.

==== No reporter.log

==== stderr.log  
fatal error: problem with interface eth1 (eth1: SIOCETHTOOL(ETHTOOL\_GET\_TS\_INFO) ioctl failed: No such device)

==== stdout.log  
max memory size (kbytes, -m) unlimited  
data seg size (kbytes, -d) unlimited  
virtual memory (kbytes, -v) unlimited  
core file size (blocks, -c) unlimited

==== .cmdline  
-i eth1 -U .status -p broctl -p broctl-live -p standalone -p local -p bro local. bro broctl broctl/standalone broctl/auto

==== .env\_vars  
PATH=/opt/bro/bin:/opt/bro/share/broctl/scripts:/usr/local/sbin:/usr/local/bin:/ usr/sbin:/usr/bin:/sbin:/bin:/opt/bro/bin  
BROPATH=/opt/bro/spool/installed-scripts-do-not-touch/site::/opt/bro/spool/insta lled-scripts-do-not-touch/auto:/opt/bro/share/bro:/opt/bro/share/bro/policy:/opt /bro/share/bro/site  
CLUSTER\_NODE=

==== .status  
TERMINATED [atexit]

==== No prof.log

==== No packet\_filter.log

==== No loaded\_scripts.log

Gest regards,

Maxime Lambert

----- Mail original -----

---

<div class="post-metadata">

**Author:** ![Azoff\_Justin\_S](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Azoff\_Justin\_S](https://community.zeek.org/u/Azoff_Justin_S)\
**Post date:** [July 6, 2016, 2:13pm UTC](https://community.zeek.org/t/host-key-verification-failed/4226/8 "2016-07-06T14:13:43Z")

</div>

You have 'interface=eth1' in your node.cfg but you don't actually have an eth1 interface.

---

<div class="post-metadata">

**Author:** ![Maxime\_Lambert](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@Maxime\_Lambert](https://community.zeek.org/u/Maxime_Lambert)\
**Post date:** [July 6, 2016, 2:28pm UTC](https://community.zeek.org/t/host-key-verification-failed/4226/9 "2016-07-06T14:28:12Z")

</div>

Hi everyone,

Mistake, from my interface !

And thanks to sudo LANG= /opt/bro/bin/broctl all is OK !

Thanks you very much !

Best regards,

Maxime Lambert

----- Mail original -----

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [May 6, 2022, 3:43pm UTC](https://community.zeek.org/t/host-key-verification-failed/4226/10 "2022-05-06T15:43:48Z")

</div>


