• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to Transfer a File In Passive Mode by FTP

by admin

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

Filed Under: Linux

Some more articles you might also be interested in …

  1. LVM Configuration : Volume Group (VG) Operations/Utilities
  2. meshlabserver Command Examples
  3. How to Disable Daylight Savings Time (DST), and Modify the Timezone on Linux
  4. phar: command not found
  5. dolt blame: Displays commit information for each row of a Dolt table
  6. w: command not found
  7. rpmspec Command Examples in Linux
  8. aws lambda: CLI for AWS lambda (Command Examples)
  9. ffplay: A simple and portable media player using the FFmpeg libraries and the SDL library
  10. Command line parameters in shell scripts

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright