# Answer for: ES cluster with SSH and port forwarding, transport port 9300

**URL:** https://discuss.elastic.co/t/answer-for-es-cluster-with-ssh-and-port-forwarding-transport-port-9300/147694
**Category:** Elasticsearch
**Created:** [September 7, 2018, 10:21am UTC](https://discuss.elastic.co/t/answer-for-es-cluster-with-ssh-and-port-forwarding-transport-port-9300/147694 "2018-09-07T10:21:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![daveyx](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daveyx/32/35298_2.png) [@daveyx](https://discuss.elastic.co/u/daveyx)
#### Post date: [September 7, 2018, 10:21am UTC](https://discuss.elastic.co/t/answer-for-es-cluster-with-ssh-and-port-forwarding-transport-port-9300/147694/1 "2018-09-07T10:21:48Z")

</div>

Hi,  
sorry to open a new thread, but i can not answer on the old thread anymore:

> [@ES cluster with SSH and port forwarding, transport port 9300](https://discuss.elastic.co/t/es-cluster-with-ssh-and-port-forwarding-transport-port-9300/121642):
>
> Hello everyone! I would like to set up an ES cluster consisting of three nodes, i.e. my local machine ('localhost') and two virtual machines in a remote network ('host1' and 'host2') For each of them, I have this very simple elasticsearch.yml: network.host: 0.0.0.0 discovery.zen.ping.unicast.hosts: ["localhost","host1","host2"] The two remote nodes are already seeing each other: curl -XGET 'localhost:9200/\_cluster/health?pretty' { "cluster\_name" : "elasticsearch", "status" : "green"…

the answer is:  
transport.publish\_host: localhost

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [October 5, 2018, 10:22am UTC](https://discuss.elastic.co/t/answer-for-es-cluster-with-ssh-and-port-forwarding-transport-port-9300/147694/2 "2018-10-05T10:22:00Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
