# What network settings does Elasticsearch modify in order to allow SSH via host name?

**URL:** <https://discuss.elastic.co/t/what-network-settings-does-elasticsearch-modify-in-order-to-allow-ssh-via-host-name/129338>\
**Category:** Elasticsearch\
**Created:** [April 24, 2018, 3:33pm UTC](https://discuss.elastic.co/t/what-network-settings-does-elasticsearch-modify-in-order-to-allow-ssh-via-host-name/129338 "2018-04-24T15:33:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Senor](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@Senor](https://discuss.elastic.co/u/Senor)\
**Post date:** [April 24, 2018, 3:33pm UTC](https://discuss.elastic.co/t/what-network-settings-does-elasticsearch-modify-in-order-to-allow-ssh-via-host-name/129338/1 "2018-04-24T15:33:29Z")

</div>

I have a scenario where we created an Elasticsearch cluster using a base Ubuntu 16.4.0.4 VM template. These Elasticsearch nodes are able to be SSHed into using their host names ([ES-DATA-01.domain.com](http://ES-DATA-01.domain.com)). I didn't think anything of it until I created another VM utilizing the same 16.4.0.4. VM template _without_ Elasticsearch, and I am unable to SSH using the host name.

I was curious about this behavior and investigated further. `/etc/hosts/` is configured appropriately on both machines to resolve to their FQDN, and `/etc/dhcp/dhclient.conf` is also identical across both of these VMs. `ifconfig` doesn't show any differences between them either.

What Linux configuration(s) does a base Elasticsearch install alter in order for SSH to work by using the host name? I am going out on a limb that within `elasticsearch.yml`, the config value of `node.name: ${HOSTNAME}` is playing into this by some sort of pass-through mechanism, but I cannot ascertain the mechanism. Perhaps unicast is also a factor here?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 25, 2018, 4:02am UTC](https://discuss.elastic.co/t/what-network-settings-does-elasticsearch-modify-in-order-to-allow-ssh-via-host-name/129338/2 "2018-04-25T04:02:11Z")

</div>

> [@Senor](#):
>
> What Linux configuration(s) does a base Elasticsearch install alter in order for SSH to work by using the host name?

None, this is not an Elasticsearch thing, it's an OS level setting.

---

<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:** [May 23, 2018, 4:02am UTC](https://discuss.elastic.co/t/what-network-settings-does-elasticsearch-modify-in-order-to-allow-ssh-via-host-name/129338/3 "2018-05-23T04:02:14Z")

</div>

Closed on May 23, 2018, 4:02am UTC

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