# Sensuctl configure prompting error : Error: unable to authenticate with error: Unauthorized

**URL:** https://discourse.sensu.io/t/sensuctl-configure-prompting-error-error-unable-to-authenticate-with-error-unauthorized/1717
**Category:** Sensu Go
**Created:** [April 16, 2020, 6:13pm UTC](https://discourse.sensu.io/t/sensuctl-configure-prompting-error-error-unable-to-authenticate-with-error-unauthorized/1717 "2020-04-16T18:13:14Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![masifpak](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@masifpak](https://discourse.sensu.io/u/masifpak)
#### Post date: [April 16, 2020, 6:13pm UTC](https://discourse.sensu.io/t/sensuctl-configure-prompting-error-error-unable-to-authenticate-with-error-unauthorized/1717/1 "2020-04-16T18:13:14Z")

</div>

I just install sensugo 5.19.1 on centos7. When i configure it it show follwing error.

> [root@dev-box-c7 ~]# sensuctl configure  
> ? Sensu Backend URL: [http://127.0.0.1:8080](http://127.0.0.1:8080)  
> ? Username: admin  
> ? Password: \*\*\*\*\*\*\*\*\*  
> ? Namespace: default  
> ? Preferred output format: tabular  
> WARN[0011] Using Basic Auth in HTTP mode is not secure, use HTTPS component=cli-client
> 
> Error: unable to authenticate with error: Unauthorized

---

<div class="post-metadata">

### Author: ![todd](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/todd/32/936_2.png) [@todd](https://discourse.sensu.io/u/todd)
#### Post date: [April 16, 2020, 6:17pm UTC](https://discourse.sensu.io/t/sensuctl-configure-prompting-error-error-unable-to-authenticate-with-error-unauthorized/1717/2 "2020-04-16T18:17:32Z")

</div>

Since it’s a new install did you initialize the backend to set to configure the initial username and password?

[https://docs.sensu.io/sensu-go/latest/installation/install-sensu/#3-initialize](https://docs.sensu.io/sensu-go/latest/installation/install-sensu/#3-initialize)

---

<div class="post-metadata">

### Author: ![Asfawh](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/asfawh/32/793_2.png) [@Asfawh](https://discourse.sensu.io/u/Asfawh)
#### Post date: [September 23, 2022, 12:06am UTC](https://discourse.sensu.io/t/sensuctl-configure-prompting-error-error-unable-to-authenticate-with-error-unauthorized/1717/3 "2022-09-23T00:06:34Z")

</div>

@todd got the same error: “Error: unable to authenticate with error: Unauthorized” while I tried to configure sensuctl via ansible config management and I wonder why your link is broken 404:-Page Not Found

---

<div class="post-metadata">

### Author: ![aaronsachs](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/aaronsachs/32/47_2.png) [@aaronsachs](https://discourse.sensu.io/u/aaronsachs)
#### Post date: [September 29, 2022, 1:43pm UTC](https://discourse.sensu.io/t/sensuctl-configure-prompting-error-error-unable-to-authenticate-with-error-unauthorized/1717/4 "2022-09-29T13:43:34Z")

</div>

Hey there–this thread is 2 years old. I’d recommend starting a new post with all the details pertinent to your issue instead of trying to resurrect this thread.

---

<div class="post-metadata">

### Author: ![Asfawh](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/asfawh/32/793_2.png) [@Asfawh](https://discourse.sensu.io/u/Asfawh)
#### Post date: [October 3, 2022, 7:27pm UTC](https://discourse.sensu.io/t/sensuctl-configure-prompting-error-error-unable-to-authenticate-with-error-unauthorized/1717/5 "2022-10-03T19:27:17Z")

</div>

@ [aaronsachs] Sure, thanks for your suggestion
