Question Locked

HAProxy when it comes to ssh

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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.

2 replies

by Wizard57M-TR

Port 22 is normally for telnet. SSH normally runs on port23. Port 22 (telnet) has been a target over the years, so many places that used to use port 22 have changed to like port 2222. I would suggest setting the sshd_config to port 23 and maybe 2323, then bind your HAProxy to 2323 for better security. You'll also need to make sure those ports are accessible through whatever firewall you use.

This discussion is closed to new replies.