How to Transfer a File In Passive Mode by FTP

By default vsftpd will use passive mode for transferring:

# man vsftpd

  pasv_enable
  Set to NO if you want to disallow the PASV method of obtaining a data connection.

  Default: YES

If the user wants to customize the ports information used, or to enable active mode, then do the following:

1. modify /etc/vsftpd/vsftpd.conf and add below lines:

pasv_enable=NO
pasv_min_port=49152
pasv_max_port=65534

2. Restart the vsfptd service for the above configuration to take effect.

# service vsftpd restart
Related Post