Skip to main content

Changing port and CSF

Comments

8 comments

  • User Avatar
    quizknows
    Ensure your new SSH port is open in CSF, and that SSH is indeed listening on that port. At that time it should be fine to close port 22, as well as 20/21 if you don't use normal FTP.
    0
  • User Avatar
    magicalwonders
    ]Ensure your new SSH port is open in CSF, and that SSH is indeed listening on that port. At that time it should be fine to close port 22, as well as 20/21 if you don't use normal FTP.

    OK, thanks for the confirmation. I've had a look in WHM "Plugins "ConfigServer Security & Firewall "View listening Ports, and my new port is listed. 20 and 22 is not present in this list, although port 21 is. Not sure I really understand that.
    0
  • User Avatar
    quizknows
    Do you have the FTP server disabled, or do you simply not utilize it? You can go to "FTP Server Selection" in WHM and entirely disable the service if you wish.
    0
  • User Avatar
    magicalwonders
    ]Do you have the FTP server disabled, or do you simply not utilize it? You can go to "FTP Server Selection" in WHM and entirely disable the service if you wish.

    I've had a look in WHM and the setting for "FTP Server Selection" has "Pure-FTPD" enabled. I transfer and download files using SFTP, so I assume I need to keep that setting enabled?
    0
  • User Avatar
    quizknows
    Pure-FTPD Is not necessary for SFTP. SFTP is a subsystem of the SSH service and will work fine with no FTP server selected.
    0
  • User Avatar
    magicalwonders
    ]Pure-FTPD Is not necessary for SFTP. SFTP is a subsystem of the SSH service and will work fine with no FTP server selected.

    OK I'll disable that setting then. Thanks for your help and advice on this. :)
    0
  • User Avatar
    cPanelMichael
    Hello :) I just wanted to add that you may also be interested in the following thread: SSH Hardening Thank you.
    0
  • User Avatar
    magicalwonders
    ]Hello :) I just wanted to add that you may also be interested in the following thread: SSH Hardening Thank you.

    Thanks for the link Michael. :)
    0

Please sign in to leave a comment.