Home » FTP » change the vsftpd server default port 21 to alternate port.

change the vsftpd server default port 21 to alternate port.

For security issues we need to change the vsftpd server tcp port # 21 to alternate port.
We need edit the configuration file for vsftpd server for the same. The default configuration file is /etc/vsftp/vsftpd.conf

# vi /etc/vsftp/vsftpd.conf

Change the line

connect_from_port_20=YES

To

connect_from_port_20=NO

Ater that append the following and line and restart the vsftpd server.

ftp_data_port=9020
listen_port=9021
#server vsftpd restart

That’s it.

About

I am founder and webmaster of www.linuxpcfix.com and working as a Sr. Linux Administrator (Expertise on Linux/Unix & Cloud Server) and have been in the industry from last 7 years.

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*

Time limit is exhausted. Please reload the CAPTCHA.

Categorized Tag Cloud