How to Connect EC2 Machine with FTP


FTP (File Transfer Protocol) is a network protocol used to transfer the files between the client and server machines. It uses TCP port 20 & 21 for connection  and  data transmission between the two machine I.e client and server.

Step 1.
Update packages.

# apt-get update

Step 2. Install ftp server on linux machine

# apt-get install vsftpd ftp -y

Step 3. Open /etc/vsftpd.conf file & change following settings.
Note: Uncomment Write_enable=YES

ftp write conf file setting
Note: Add these 4 lines at the end of the file after that save & exit


ftp port conf file setting

Step 4. Create a Ftpuser & you can specify any Name & Password for your user.

# adduser ftpuser

ftp user creation page

Step 5. Assign permission to ftpuser.

# chmod 777 /home/ftpuser

Step 4. Restart ftp server.

# service vsftpd restart

Windows Machine

Step 1. Download Ftp Client Named Filezilla From Below Link.

Step 2. Open Filezilla and mention your Host Username and Password for connectivity.

ftp connectivity pic

Note : Now you can easily transfer your data from linux machine to windows machine or vice versa through drag and drop data.