Question

  • Creator
    Topic
  • #4286894
    Avatar photo

    HAProxy when it comes to ssh

    by Maxime TERRIER ·

    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.

You are posting a reply to: HAProxy when it comes to ssh

The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our Community FAQs for details. All submitted content is subject to our Terms of Use.

All Answers

  • Author
    Replies
    • #4286910
      Avatar photo

      Reply To: HAProxy when it comes to ssh

      by Wizard57M-TR ·

      In reply to HAProxy when it comes to ssh

      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.

    • #4286926
      Avatar photo

      Port 22.

      by rproffitt ·

      In reply to HAProxy when it comes to ssh

      Sounds occupied but even so you would be better off over at https://www.reddit.com/r/haproxy/

Viewing 1 reply thread