This article provides a step-by-step guide on how to change the FTP port on a VPS or Dedicated server using PureFTPd.
It advises accessing your server via SSH and locating the PureFTPd configuration file. Once found, the article instructs you to modify the port number in the configuration file, ensuring it doesn't conflict with other services.
Overall, the article aims to help you easily and effectively change the FTP port on your server.
Change FTP Port
IMPORTANT: This solution will require root access. If this needs to be obtained, follow the guide on requesting root access.
- Access your server via SSH as the root user or using the Terminal in Root WHM
- Confirm the desired port is not in use by running this command on the server, replacing the ## with the desired port number
netstat -nlp | grep :##
- Open the port in the firewall
- Restart the firewall if you didn't do so in Step 3
- Edit the
/etc/pure-ftpd.conf
file- This can be edited with nano, vim, or your preferred terminal text editor if it is installed
EXAMPLE:nano /etc/pure-ftpd.conf
- This can be edited with nano, vim, or your preferred terminal text editor if it is installed
- Find the line where it says
Bind 21
- If using the previous example of nano, you can press Control+W to search and type bind to find this quickly
- Edit that line to replace 21 with the new port
- Save the file
- If you used nano, you would save with Control+O then enter and exit with Control+X then enter
- Restart PureFTPd with the following command
service pure-ftpd restart
- Check that it is listening on the new port with the following command
netstat -nlp | grep ftpd
Comments
0 comments
Article is closed for comments.