You have to set `export es_password=“YOURPASSWORD”` to execute the curls afterwards. `sudo` is not required during this operation and will also loose the scope of the temporary environment variable you set. Thus the password variable should be empty which causes the error message of you being not authenticated.
The Gist holds everything you need for copy-pasting, except that password export and might be confusing in order (so the video is basically the needed link). I’ll check if I can improve the gist later this weekend.
Also sorry for the confusion. In the video variant I wrote it to my `.bashrc`, because it was a throw away host anyway so that might have been confusing.
That SSL wrong version number error usually happens when curl tries to hit an HTTPS endpoint, but Elasticsearch is either still running on HTTP or your cert paths/ports in the config got messed up during the upgrade steps. Double-check your elasticsearch.yml to make sure xpack.security.http.ssl.enabled is set properly and you aren’t mixing up ports 9200 and 9300.