We often need to transfer files from one machine to another. There are several ways we can do this , however in case you need to transfer files across the machines which are located in different geographic locations, then the only way is over internet.
Transferring files over http can be slow, so the best option would be to transfer using FTP. So lets get started setting up FTP on Ubuntu.
Boot up your Ubuntu box and login
Open your Terminal window and type in the following commands
sudo apt-get update
sudo apt-get install vsftpd
Once installed you will need to edit /etc/vsftpd.conf file.
pico /etc/vsftpd.conf
Make the following changes in the vsftpd.conf file
Disable Anonymous login
anonymous_enable=NO
Allow local user to login to FTP
local_enable=YES
Enable write to the FTP server in case you need to upload some data to ftp server
write_enable=YES
Restrict users to their home directories
chroot_local_user=YES
Enable the list of users for chroot
chroot_list_enable=YES
Set the list for user to chroot. You will need to create this file manually under /etc or other location where you intend to place this file
chroot_list_file = /etc/vsftpd.chroot_list
Save the file and restart the vsftpd service from your terminal
sudo service vsftpd restart
From other machine try connecting to your new FTP server using any FTP client.