Changes between Initial Version and Version 1 of FTP


Ignore:
Timestamp:
11/19/22 04:01:06 (2 years ago)
Author:
krit
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FTP

    v1 v1  
     1= FTP server =
     2
     3Ref [https://linuxhint.com/setup-vsftpd-ftp-server-on-debian10/ here]
     4
     5 1. install vsftp
     6{{{
     7$ apt install vsftpd
     8}}}
     9 2. cp config to backup
     10{{{
     11$ sudo cp /etc/vsftpd.conf /etc/vsftpd.conf.orig
     12}}}
     13 3. edit config /etc/vsftpd.conf
     14{{{
     15listen=YES
     16listen_ipv6=NO
     17connect_from_port_20=YES
     18anonymous_enable=NO
     19local_enable=YES
     20write_enable=YES
     21chroot_local_user=YES
     22allow_writeable_chroot=YES
     23secure_chroot_dir=/var/run/vsftpd/empty
     24pam_service_name=vsftpd
     25pasv_enable=YES
     26pasv_min_port=40000
     27pasv_max_port=45000
     28userlist_enable=YES
     29userlist_file=/etc/vsftpd.userlist
     30userlist_deny=NO
     31}}}
     32 4. Add the user to the allowed FTP users list: in ex. allow user '''demo'''
     33{{{
     34$ echo "demo" | tee -a /etc/vsftpd.userlist
     35}}}
     36 5. restart /etc/init.d/vsftpd restart or systemctl restart vsftpd