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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • 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. named Command Examples in Linux
  2. Linux OS Service ‘ntpd’
  3. eyeD3 Command Examples in Linux
  4. hostnamectl Command Examples in Linux
  5. passwd: command not found
  6. e2label: command not found
  7. gprof: command not found
  8. qjoypad: command not found
  9. atrm Command Examples in Linux
  10. How to Use iptables instead of firewalld on CentOS/RHEL 7 and 8

You May Also Like

Primary Sidebar

Recent Posts

  • raw: command not found
  • raw Command Examples in Linux
  • rankmirrors Command Examples in Linux
  • radeontop: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright