Reset Elasticsearch users password

Resets the password of a username user1 after prompting for the desired password:

bin/elasticsearch-reset-password --username user1 -i
Autogenerate password:
bin/elasticsearch-reset-password -u elastic --url "https://192.168.50.3:9200"
If you’re working in Kibana Dev Tools or don’t have command-line access, you can use the change passwords API to change a user’s password:
POST /_security/user/user1/_password
{
  "password" : "new-test-password"
}