# Not being able to receive the verification key to login to Kibana for ElasticSearch

**URL:** <https://discuss.elastic.co/t/not-being-able-to-receive-the-verification-key-to-login-to-kibana-for-elasticsearch/374091>\
**Category:** Kibana\
**Created:** [February 4, 2025, 11:11pm UTC](https://discuss.elastic.co/t/not-being-able-to-receive-the-verification-key-to-login-to-kibana-for-elasticsearch/374091 "2025-02-04T23:11:52Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![remoteconn-7891](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/remoteconn-7891/32/141152_2.png) [@remoteconn-7891](https://discuss.elastic.co/u/remoteconn-7891)\
**Post date:** [February 4, 2025, 11:11pm UTC](https://discuss.elastic.co/t/not-being-able-to-receive-the-verification-key-to-login-to-kibana-for-elasticsearch/374091/1 "2025-02-04T23:11:52Z")

</div>

Hello guys, I'm relatively new to Elasticsearch and I'm trying to login to the Kibana dashboard, but on the login page, it's asking me to provide the verification code, which I'm not able to find.

For some context, I'm currently on Fedora Linux, so I was able to install Elasticsearch in my local (machine) terminal. However I ran this command when trying to load a new verification key `/usr/share/kibana/bin/kibana-verification-code`.  
This is the output, which I assumed would've been the 6 digit code, but got this error message instead

```auto
coreyj@fedora:~$ /usr/share/kibana/bin/kibana-verification-code
Couldn't find verification code.

If Kibana hasn't been configured yet, restart Kibana to generate a new code.

```

. Here is the screenshot for the login page

 ![Screenshot From 2025-02-04 16-07-44](https://us1.discourse-cdn.com/elastic/original/3X/7/2/72e80dd6f7827f8fe05c0e7676dfcbaea2c09216.png)

So to reiterate, Elasticsearch was successfully installed, just trying to get Kibana dashboard going, but I can't login. Please I need help with this

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [February 5, 2025, 2:55am UTC](https://discuss.elastic.co/t/not-being-able-to-receive-the-verification-key-to-login-to-kibana-for-elasticsearch/374091/2 "2025-02-05T02:55:33Z")

</div>

Hi @remoteconn-7891 Welcome to the community!

Can you try...

`cd /usr/share/kibana`

Then

`./bin/kibana-verification-code`

---

<div class="post-metadata">

**Author:** ![remoteconn-7891](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/remoteconn-7891/32/141152_2.png) [@remoteconn-7891](https://discuss.elastic.co/u/remoteconn-7891)\
**Post date:** [February 5, 2025, 7:38am UTC](https://discuss.elastic.co/t/not-being-able-to-receive-the-verification-key-to-login-to-kibana-for-elasticsearch/374091/3 "2025-02-05T07:38:38Z")

</div>

Sorry for the late reply, I'll try this right now. Thank you

---

<div class="post-metadata">

**Author:** ![remoteconn-7891](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/remoteconn-7891/32/141152_2.png) [@remoteconn-7891](https://discuss.elastic.co/u/remoteconn-7891)\
**Post date:** [February 5, 2025, 7:40am UTC](https://discuss.elastic.co/t/not-being-able-to-receive-the-verification-key-to-login-to-kibana-for-elasticsearch/374091/4 "2025-02-05T07:40:44Z")

</div>

No, still not working. I ran the first command you showed me, worked. The second, however did not.

Here is the same error output

```auto
coreyj@fedora:/usr/share/kibana$ ./bin/kibana-verification-code
Couldn't find verification code.

If Kibana hasn't been configured yet, restart Kibana to generate a new code.

Otherwise, you can safely ignore this message and start using Kibana.

```

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [February 5, 2025, 2:25pm UTC](https://discuss.elastic.co/t/not-being-able-to-receive-the-verification-key-to-login-to-kibana-for-elasticsearch/374091/5 "2025-02-05T14:25:10Z")

</div>

Did you try restarting Kibana as suggested?

What version are you using?

What documentation are you following?

---

<div class="post-metadata">

**Author:** ![remoteconn-7891](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/remoteconn-7891/32/141152_2.png) [@remoteconn-7891](https://discuss.elastic.co/u/remoteconn-7891)\
**Post date:** [February 5, 2025, 8:50pm UTC](https://discuss.elastic.co/t/not-being-able-to-receive-the-verification-key-to-login-to-kibana-for-elasticsearch/374091/6 "2025-02-05T20:50:22Z")

</div>

Sorry for the late reply. So the version I'm using is 8.17.1. I did restart Kibana with this command `sudo systemctl restart kibana`.

And I even ran the command `./bin/kibana-verification-code` again

And still got the error

```auto
Couldn't find verification code.

If Kibana hasn't been configured yet, restart Kibana to generate a new code.

Otherwise, you can safely ignore this message and start using Kibana.

```

My commands may differ from yours as I'm using Fedora, you may be using Ubuntu or Debian.

I'm getting a new laptop really soon, so I'm gonna boot it to Ubuntu. Because I've been having problems with Fedora on my projects

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [February 5, 2025, 9:01pm UTC](https://discuss.elastic.co/t/not-being-able-to-receive-the-verification-key-to-login-to-kibana-for-elasticsearch/374091/7 "2025-02-05T21:01:08Z")

</div>

Once you get reinstalled / Ubuntu etc...  
Follow our official documentation and check back  
If you are just doing test etc. on your Laptop, Docker may be easier to run / upgrade etc..etc..

---

<div class="post-metadata">

**Author:** ![remoteconn-7891](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/remoteconn-7891/32/141152_2.png) [@remoteconn-7891](https://discuss.elastic.co/u/remoteconn-7891)\
**Post date:** [February 5, 2025, 11:41pm UTC](https://discuss.elastic.co/t/not-being-able-to-receive-the-verification-key-to-login-to-kibana-for-elasticsearch/374091/8 "2025-02-05T23:41:35Z")

</div>

Yes, when I boot the laptop to Ubuntu, definitely start Elasticsearch over with Docker.

It seems like that's best approach for Elasticsearch. I'd post the link to the tutorial I used for Fedora, but it won't allow to post the link here. The popup says something about the host
