Step 1
1 - apt-get install vsftpd
2 - vim /etc/vsftpd.conf
3 - changes
listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
chroot_local_user=YES ( First One )
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
pasv_enable=YES
port_enable=YES
pasv_min_port=1024
pasv_max_port=1048
pasv_address=0.0.0.0
Note - 0.0.0.0 will be your be your public IP
Step 2
Add Port in your Security Group
tcp 20-21
tcp 1024-1048
Step 3 echo 'allow_writeable_chroot=YES' >> /etc/vsftpd.conf
Done
No comments:
Post a Comment