# Multiple ssh login hosts?

**URL:** https://discourse.openondemand.org/t/multiple-ssh-login-hosts/3909
**Category:** Get Help
**Created:** [December 5, 2024, 2:39pm UTC](https://discourse.openondemand.org/t/multiple-ssh-login-hosts/3909 "2024-12-05T14:39:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sebastian-burlacu](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/sebastian-burlacu/32/2440_2.png) [@sebastian-burlacu](https://discourse.openondemand.org/u/sebastian-burlacu)
#### Post date: [December 5, 2024, 2:39pm UTC](https://discourse.openondemand.org/t/multiple-ssh-login-hosts/3909/1 "2024-12-05T14:39:35Z")

</div>

I know I can use a DNS entry to load balance between two hosts, but I would like to define two hosts in the OOD config and have OOD load balance. The reason for this is I have 2FA enabled on the login nodes when they are being connected to from all other sources, except from the OOD server directly, and when I use the load balancer they are behind, it forces 2FA. I am using host based authentication from the OOD server but I can’t do it if the load balancer is in between, because then that becomes the source and forces 2FA. Hope that makes sense. When I define multiple hosts in the login section, it always uses the last one. Thanks for any help.

---

<div class="post-metadata">

### Author: ![sebastian-burlacu](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/sebastian-burlacu/32/2440_2.png) [@sebastian-burlacu](https://discourse.openondemand.org/u/sebastian-burlacu)
#### Post date: [December 5, 2024, 2:58pm UTC](https://discourse.openondemand.org/t/multiple-ssh-login-hosts/3909/2 "2024-12-05T14:58:40Z")

</div>

I installed keepalived on the login nodes to pass an IP between them. thus I can hit them ‘directly’ via this virtual IP and if one goes down, I can still hit the other one. this doesn’t distribute the load evenly but it is fault tolerant.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)
#### Post date: [June 3, 2025, 2:59pm UTC](https://discourse.openondemand.org/t/multiple-ssh-login-hosts/3909/3 "2025-06-03T14:59:34Z")

</div>

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