FTP is used to transfer files from one host to another over TCP network. This article we will look at how to setup FTP server on ubuntu.
First of all we need to update our package lists from the repositories. To do this open command line and type following command:
sudo apt-get update
Now we can install VsFTPD package for FTP server using the below command
sudo apt-get install vsftpd
After Ftp server installed we need to modify some setting for FTP server work as we need.
So we will need the next command :
sudo vim /etc/vsftpd/vsftpd.conf After that we need changes some settings below and save & exit from the vsftpd.conf file:
listen=YES anonymous_enable=YES local_enable=YES write_enable=YES chroot_local_user=YES And then restart the FTP service for the changes to take effect: sudo service vsftpd restart vsftpd stop/waiting vsftpd start/running, process 14554
After that make sure that FTP listen to 21 port and for this type command below:
sudo telnel localhost 21
If you get "connected to localhost" it's means everything ok and FTP work properly. Now we need create user for FTP and type password for user: sudo adduser ftpuser After all that we need one of FTP client application for connect to ftp server. Now we will FileZilla software and our IP address is 172.16.110.11: And you can also connect to FTP server with browser with your IP address ftp://172.16.110.11