The File Transfer Protocol (FTP) is a standard network protocol used to transfer files from one machine to another machine or server. If you plan to manage your own virtual private server (VPS) or dedicated server to host your blog or website, i would suggest you install ftp service. It will be easy for you to retrieved and upload any files to the VPS server. This post describes the steps to install and configure vsftpd FTP Server on Ubuntu 14.04.
1. Install vsftpd FTP service :
ehowstuff@ubuntu14:~$ sudo apt-get install vsftpd -y
2. Open vsftpd.conf and uncomment the following :
ehowstuff@ubuntu14:~$ sudo vi /etc/vsftpd.conf
Uncomment below and add two last line :
.. write_enable=YES .. ascii_upload_enable=YES ascii_download_enable=YES .. chroot_local_user=YES chroot_list_enable=YES .. chroot_list_file=/etc/vsftpd.chroot_list .. ls_recurse_enable=YES .. local_root=public_html seccomp_sandbox=NO
3. Allow user to access their home directory :
ehowstuff@ubuntu14:~$ sudo vi /etc/vsftpd.chroot_list
Add ehowstuff :
ehowstuff
4. Restart vsftpd to take afffect :
ehowstuff@ubuntu14:~$ sudo initctl restart vsftpd vsftpd start/running, process 1988
5. Verify the ftp port listening or not :
ehowstuff@ubuntu14:~$ telnet localhost 21 Trying ::1... Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 (vsFTPd 3.0.2) ^] telnet> quit
6. Test from Windows Client :
D:\>ftp 192.168.0.114 Connected to 192.168.0.114. 220 (vsFTPd 3.0.2) User (192.168.0.114:(none)): ehowstuff 331 Please specify the password. Password: 230 Login successful. ftp> pwd 257 "/home/ehowstuff/public_html" ftp>
Thats all.