# Manually Enrolling Kibana

**URL:** <https://discuss.elastic.co/t/manually-enrolling-kibana/338451>\
**Category:** Kibana\
**Tags:** docker\
**Created:** [July 15, 2023, 8:11am UTC](https://discuss.elastic.co/t/manually-enrolling-kibana/338451 "2023-07-15T08:11:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ANUBHAV\_GUPTA](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@ANUBHAV\_GUPTA](https://discuss.elastic.co/u/ANUBHAV_GUPTA)\
**Post date:** [July 15, 2023, 8:11am UTC](https://discuss.elastic.co/t/manually-enrolling-kibana/338451/1 "2023-07-15T08:11:16Z")

</div>

Hi there,

I am trying to enroll Kibana manually (meaning without the enrollment token.)  
Basically what I am doing is-  
Starting elasticsearch and then setting the password for `kibana_system`  
and then entering these credential in kibana login page.

So the problem here is , When I am trying to do this in my local machine I am able to do this successfully.

But when I tried running elasticsearch and kibana in an EC2 VM then after providing the kibana username and password it also asks for a 6 digit verification code, which It was not asking when I was running it in my local setup.

```auto
Note: I am running elasticsearch and kibana using docker

```

Can anyone please help me here understand this behaviour.  
Also, is there any environment variable I can set in Kibana using which I do not have to pass 6 digit verification code.

Thanks

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [July 18, 2023, 2:41pm UTC](https://discuss.elastic.co/t/manually-enrolling-kibana/338451/2 "2023-07-18T14:41:29Z")

</div>

For Docker you will have to generate your enrollment token: [Install Kibana with Docker | Kibana Guide [8.8] | Elastic](https://www.elastic.co/guide/en/kibana/current/docker.html)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 15, 2023, 2:42pm UTC](https://discuss.elastic.co/t/manually-enrolling-kibana/338451/3 "2023-08-15T14:42:03Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
