How to Install FTP Server in Ubuntu 16.04 LTS

FTP or File Transfer Protocol servers allow you to share or host data on your computer that might be too large to transfer through an email.

Here I am discussing how to install an FTP server in your home/office network so that you can easily share files from the server to the other computers.

There are a lot of Linux based FTP servers like ProFTPD, Pure-FTPd, vsftpd etc. I prefer vsftpd.

vsftpd

vsftpd – Very Secure FTP daemon is the default FTP server in the Ubuntu, CentOS, Fedora, NimbleX, Slackware and RHEL Linux distributions.

Steps

  1. Open terminal and type this command to install vsftpd.
    sudo apt-get install vsftpd -y
    
  2. Now we want to configure the installed vsftpd. Edit /etc/vsftpd.conf file
    sudo gedit /etc/vsftpd.conf
    
  3. Find and change the following lines as shown below.
    [...]
    ##Disable anonymous user login.
    anonymous_enable=NO
    
    ##Uncomment these two lines.
    ascii_upload_enable=YES
    ascii_download_enable=YES
    
    ##Uncomment and enter your Welcome message - Not necessary, It's optional.
    ftpd_banner=Welcome to Joo Nice FTP service.
    
    ##Add this line the end.
    use_localtime=YES
    

    Save and exit gedit.

  4. Now restart the vsftpd server.
    sudo service vsftpd restart
    

Now you can access the ftp server from other computers of same LAN via an ftp clients like filezilla or gftp, or just access (read only) by using a web browser. You have to use the username and password of the server.

 

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