Using a SSH tunnel with the ElasticSearch plugin

So, I am using the ElasticSearch plugin in order to integrate an ElasticSearch instance on another server with my application. However, I have not seen any method on the documentation to connect my ElasticSearch instance to the application using a SSH tunnel. I figured this was the best course of action, as I don’t want anyone to destroy our ElasticSearch data through the HTTP client.

Has anyone figured out how to do this and if so, could you please share how you did it?

the same problem,oh my god cakephp