Changing port and CSF
I've been getting a lot of failed login attempts from hackers, so asked my host to change the port I login to the server with. I use the same new port to sftp.
However, the login attempts are just as many as before. I've noticed on looking in CSF that the allowed incoming TCP ports are still including port 22. Should this not be removed?
Also, according to wikipedia, ports 20 & 21 are for FTP data transfer and FTP control (command). As I'm only using SFTP on another port, is it safe to remove these from the list in CSF ?
Hope someone can advise?
-
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 -
]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 -
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 -
]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 -
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 -
]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 -
Hello :) I just wanted to add that you may also be interested in the following thread: SSH Hardening Thank you. 0 -
]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.
Comments
8 comments