Unable to retrieve version information from Elasticsearch nodes. socket hang up

Hi there ! Security features are enabled by default in Elasticsearch and kibana as of version. 8.0.0 !

When you installed Elasticsearch, the first time you started it up, you would have received a password for the elastic user and an enrolment token that you could use to configure kibana. If you didn’t make use of these, you can still take advantage of the simplified setup :

  1. Create an enrolment token in Elasticsearch with

elasticsearch-create-enrollment-token -s kibana

  1. Reinstall kibana , start it and follow the instructions in your browser. It will ask you to enter the enrollment token you just created and kibana will configure itself to talk to Elasticsearch

See here too Install Kibana from archive on Linux or macOS | Kibana Guide [8.0] | Elastic