Skip to main content

Login fail, login fail, login fail - login succeeds! Is it CPHulk?

Comments

6 comments

  • keat63
    In my experience, its CPhulk. Do you have CSF installed at all ?
    0
  • cycas
    Oh good, at least it's a known thing. Yes, I do have CSF installed, does that help?
    0
  • quizknows
    If you have CSF installed it's often best to just disable cphulk entirely. CSF will monitor the same logs that cphulk does. Sometimes SSH can get tied up if it's being brute forced; it only allows so many unauthenticated sessions at a time. This can cause the 'server unexpectedly closed connection' error that you received. There are several options to fix this such as adjusting the maxstartups in the sshd config, but generally it's best to just open a new alternate port in CSF and set the ssh server to run on that alternate port. This usually gets you past enough of the generic bot scans so they don't tie up all the startups (unauthed ssh sessions, i.e. active PW prompts).
    0
  • keat63
    I have CPHulk still applied as well as CSF, but then i'm no expert. I would also suggest moving SSH to a different port, somewhere below 1000. Before you do though, ensure that your IP is whitelisted in CSF, Host Access Control and CPHULK. When you've done all this, close port 22 in CSF.
    0
  • cycas
    Many thanks for the help, I will close port 22 and put SSH on another port.
    0
  • cPanelMichael
    Many thanks for the help, I will close port 22 and put SSH on another port.

    Hello :) You may also find this guide helpful: SSH Hardening Guide Thank you.
    0

Please sign in to leave a comment.