Create FTP in Ubuntu EC2

Standard

sudo apt install vsftpd

and edit vsftpd.conf file emacs /etc/vsftpd.conf


listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=002 #
Umask and final permissions that you need should add up to 777. Since you need 775 permissions, you need 777 – 775 = 002 as umask.

 

allow_writeable_chroot=YES
pasv_addr_resolve=NO
pasv_address=x.x.x.x
local_root=/var/www/html/
pasv_enable=YES
pasv_min_port=13000 #enable this inbound ports 13000-13100 from security group
pasv_max_port=13100
port_enable=YES

 

Note: “chmod 777 -R /var/www” to enable write permissions

Add users

sudo adduser fptuser

then  try to connect this should work

This configuration fixes following issues.
1.Server sent passive reply with unroutable address. Using server address instead
2.Command: LIST Error: Connection timed out
Error: Failed to retrieve directory listing.
3.503 password incorrect

 

References:

https://in.godaddy.com/help/how-to-set-up-an-ftp-server-on-ubuntu-1404-12301

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s