I have setup a SSH tunnel on port 9300 to my remote elasticsearch server.
When running this basic example to get the example data from the elasticsearch instance I get a "org.elasticsearch.client.transport.NoNodeAvailableException: No node available"
Settings settings = ImmutableSettings.settingsBuilder()
.build();
Client client = new TransportClient(settings).addTransportAddress(
new InetSocketTransportAddress(InetAddress.getLocalHost().getHostName(), 9300));
GetResponse getResponse = client.prepareGet("bank", "account", "25").execute().actionGet();