# How to load balance SSH logins?

**URL:** https://discourse.openondemand.org/t/how-to-load-balance-ssh-logins/2421
**Category:** Get Help
**Created:** [January 4, 2023, 6:27pm UTC](https://discourse.openondemand.org/t/how-to-load-balance-ssh-logins/2421 "2023-01-04T18:27:16Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![simonleary-umass-edu](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/simonleary-umass-edu/32/1254_2.png) [@simonleary-umass-edu](https://discourse.openondemand.org/u/simonleary-umass-edu)
#### Post date: [January 4, 2023, 6:27pm UTC](https://discourse.openondemand.org/t/how-to-load-balance-ssh-logins/2421/1 "2023-01-04T18:27:17Z")

</div>

My cluster has multiple login nodes, and an haproxy server which distributes the requests. I wanted to configure OOD to send SSH requests through this haproxy, but OOD must use host based authentication, and I don’t think that can work through a proxy:

```auto
userauth_hostbased mismatch: client sends <ood-head-hostname>, but we resolve <haproxy-IP> to <haproxy-hostname>

```

Does everybody use just one login node? Is this functionality built in to OOD and I overlooked it?

---

<div class="post-metadata">

### Author: ![simonleary-umass-edu](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/simonleary-umass-edu/32/1254_2.png) [@simonleary-umass-edu](https://discourse.openondemand.org/u/simonleary-umass-edu)
#### Post date: [January 4, 2023, 7:17pm UTC](https://discourse.openondemand.org/t/how-to-load-balance-ssh-logins/2421/2 "2023-01-04T19:17:40Z")

</div>

I found one solution.  
I defined a new host in the central dnsmasq server “login-node-round-robin” and I made duplicate entries for it pointing to each of the login nodes.

---

<div class="post-metadata">

### Author: ![gbyrket](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/gbyrket/32/894_2.png) [@gbyrket](https://discourse.openondemand.org/u/gbyrket)
#### Post date: [January 4, 2023, 8:21pm UTC](https://discourse.openondemand.org/t/how-to-load-balance-ssh-logins/2421/3 "2023-01-04T20:21:28Z")

</div>

Thanks Simon.

Yes. DNS Round Robin would be a way to do it.

Thanks,  
-gerald

---

<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: [July 3, 2023, 8:21pm UTC](https://discourse.openondemand.org/t/how-to-load-balance-ssh-logins/2421/4 "2023-07-03T20:21:48Z")

</div>

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