Skip to main content

Need multiple tries to SSH and SFTP

Comments

4 comments

  • cPanelMichael
    Hello, Do you notice any output to /var/log/secure when the initial attempts fail? Thank you.
    0
  • g6260
    Thank you for your reply, Michael. I've been tailing /var/log/secure while attempting to log in. Only the successful logins appear in the log. Dec 20 20:25:47 server-1 sshd[10404]: Accepted publickey for root from **.**.**.** port 56039 ssh2 Dec 20 20:25:47 server-1 sshd[10404]: pam_unix(sshd:session): session opened for user root by (uid=0) Dec 20 20:28:12 server-1 sshd[12139]: Received disconnect from **.**.**.**: 11: disconnected by user Dec 20 20:28:12 server-1 sshd[12139]: pam_unix(sshd:session): session closed for user root If the connection is closed by the remote host, there is no output to the log at all.
    0
  • cPanelMichael
    Hello, Could you open a support ticket using the link in my signature so we can take a closer look? Thank you.
    0
  • cPanelMichael
    Whitelisting my IP on the csf firewall does not help.

    Hello, To update, per the support ticket, it looks as though the culprit was the CSF firewall application: When this typically occurs, it seems that CSF is the culprit. SSH is unwilling to start a new authentication process due to too many authentication processes already running. A server having enough SSH startup processes to cause this issue likely has a 3rd party firewall application which is adding outgoing "DROP" rules for IPs detected as brute forcing. Since this firewall rule doesn't result in an error packet being sent back to the process in question, it remains running indefinitely.
    Additionally, you may want to consider moving SSH to an alternate port to help prevent brute force attacks. We provide a thread to help with this at: [Tutorial] Interested in increasing the security of your server? Read this. (sshd hardening) Thank you.
    0

Please sign in to leave a comment.