HAProxy when it comes to ssh - TechRepublic
Question
January 23, 2025 at 09:43 PM
Maxime TERRIER

HAProxy when it comes to ssh

by Maxime TERRIER . Updated 1 year, 4 months ago

Hi,
I need HAProxy to load balance a cluster dedicated to backup. It uses duplicity, so ssh. HAProxy won’t start because the 22 port is already in use; of course I’m connected through it for this deployment – and I’ll still need access to each machine through 22 port for admin reasons.

I thought sshd_config could bear Port 22 and Port 222, and bind HAProxy to 222. But it leads to many strange behaviours.

So, any idea ? thx

I tried to start HAProxy listening on port 22, then add it in sshd_config after. But it’s unstable.

All Comments