# Curl -X GET 'https://localhost:9200'

**URL:** https://discuss.elastic.co/t/curl-x-get-https-localhost-9200/336624
**Category:** Elasticsearch
**Created:** [June 21, 2023, 7:43pm UTC](https://discuss.elastic.co/t/curl-x-get-https-localhost-9200/336624 "2023-06-21T19:43:46Z")
**Posts on this page:** 1
**Showing post:** 19

<div class="post-metadata">

### Author: ![codepan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/codepan/32/122632_2.png) [@codepan](https://discuss.elastic.co/u/codepan)
#### Post date: [June 26, 2023, 1:07pm UTC](https://discuss.elastic.co/t/curl-x-get-https-localhost-9200/336624/19 "2023-06-26T13:07:25Z")

</div>

Segui os passos e o artigo de suas últimas respostas e funcionou normalmente!

**Segui até o repositório correto:**

```auto
cd /usr/share/elasticsearch

```

Redefinia a senha:

```auto
bin/elasticsearch-reset-password -u elastic

This tool will reset the password of the [elastic] user to an autogenerated value.
The password will be printed in the console.
Please confirm that you would like to continue [y/N]y

```

A senha foi gerada no terminal e usei ela no comando curl -k GET [https://localhost:9200](https://localhost:9200) -u elastic e tudo funcionou perfeitamente, muito obrigado! 🙂

Agora só preciso vincular o [elasticsearch no firewall](https://discuss.elastic.co/t/elastic-fireall-port-9200/336714/2) se puder me ajudar.

---

_[View the full topic](https://discuss.elastic.co/t/curl-x-get-https-localhost-9200/336624)._
