How to check elasticsearch current version after login to linux ? How to upgrade it with new version?

Please don't post pictures of text. It's hard to read and cannot be debugged or searched.

That is usually the response when you're trying to curl on HTTP when it should be HTTPS