Our features site is undergoing a refresh! Be sure to explore the revamped site and discover our latest product roadmap launching here on Monday, March 18th.

Ability to change default FTP port

Amit K shared this idea 6 years ago
Open Discussion

As a cPanel User and VPS administrator, I would like a feature to allow users to change FTP port other than default 21 to increase security and prevent blind FTP access attempts.

Currently, it can be done by changing the port number for Bind parameter in the following files:

etc/pure-ftpd.conf

etc/chkserv.d/ftpd

However, the changes get lost with cPanel updates.


Just wondering if editing etc/ssh/sshd_config to change the default SSH port is allowed then why the changes in above those two files aren't respected or are overwritten.

The requested feature helps to prevent a number of attacks on the server.

Replies (2)

photo
1

You can change SSH port, cPanel won't touch this file. I have several cPanel servers with different SSH port. But don't forget to edit iptables or firewalld rules, or at least, have a KVM access (console) to the server, if any error.


I receive, every week, lots of scans in FTP port. Ok about cpHulk but a different port will help to protect and use less resources.


Change the default cPanel and WHM ports would be good too...

photo
1

If you change the ftp config from console, you need to follow this guide:

https://documentation.cpanel.net/display/CKB/How+to+Edit+FTP+Server+Configuration+from+the+Command+Line

The sshd_config file isnt touched by cpanel after upgrades, you dont need to worry about lose your custom config.

Leave a Comment
 
Attach a file