# How to enable Elastic-Search Security on one node Single cluster

**URL:** <https://discuss.elastic.co/t/how-to-enable-elastic-search-security-on-one-node-single-cluster/186470>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [June 19, 2019, 12:53pm UTC](https://discuss.elastic.co/t/how-to-enable-elastic-search-security-on-one-node-single-cluster/186470 "2019-06-19T12:53:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BENMOHAMED\_Abdelkade](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benmohamed_abdelkade/32/43473_2.png) [@BENMOHAMED\_Abdelkade](https://discuss.elastic.co/u/BENMOHAMED_Abdelkade)\
**Post date:** [June 19, 2019, 12:53pm UTC](https://discuss.elastic.co/t/how-to-enable-elastic-search-security-on-one-node-single-cluster/186470/1 "2019-06-19T12:53:17Z")

</div>

Hey everyone !

I'm currently following these two tutorial to enable elasticsearch security which is now free, but in these two tutorials, it's specified only for two node-cluster and i only have one,

my default elastic-search directory is located at `/usr/share/elasticsearch/`  
and the configuration file like the `elasticsearch.yml` is located at `/etc/elasticsearch`

I tried to adapt the tutorial as i could, but when i had to execute `bin/elasticsearch` and `bin/elasticsearch-setup-password auto`, i got errors of refused connection.

My question is, how to adapt this tutorial for a one node cluster, thank you in advance !

these are the links to the tutorials

[[https://www.youtube.com/watch?v=nMh1HWWe6B4](https://www.youtube.com/watch?v=nMh1HWWe6B4)]([http://Blog](http://Blog) Post)  
[[https://www.elastic.co/fr/blog/getting-started-with-elasticsearch-security](https://www.elastic.co/fr/blog/getting-started-with-elasticsearch-security)]([http://Video](http://Video) tutorial)

---

<div class="post-metadata">

**Author:** ![wangqinghuan](https://avatars.discourse-cdn.com/v4/letter/w/d26b3c/32.png) [@wangqinghuan](https://discuss.elastic.co/u/wangqinghuan)\
**Post date:** [June 19, 2019, 5:47pm UTC](https://discuss.elastic.co/t/how-to-enable-elastic-search-security-on-one-node-single-cluster/186470/2 "2019-06-19T17:47:02Z")

</div>

"refused connection" indicates your es instance is probably not running, can you check the elasticsearch.log ?

---

<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:** [July 17, 2019, 5:58pm UTC](https://discuss.elastic.co/t/how-to-enable-elastic-search-security-on-one-node-single-cluster/186470/3 "2019-07-17T17:58:20Z")

</div>

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