How To Setup a FTP Server for Home or Lab Use.

FTP sever is a very common phrase in tech world. Especially when you want to download something faster than any internet server. But, can you believe that you can setup your very own ftp server in your local network? In this blog, I am going to tell you step by step how you can set up a ftp server at home.

First, you need to install vsftpd. For that:

After the installtion, you need to create an ftp user. So, run this command:
Here, -m will create a home directory for the user. Which we are going to acces from another pc. Then, type: and set the password for the new user.

Now, we need to configure the config file for vsftpd to use the ftp server on our accordingly. Type in your termianl: sudo vim /etc/vsftpd.conf and uncomment(remove # from the starting of each line) these 3 lines:

  1. write_enable=YES
  2. local_enable=YES
  3. chroot_local_user=YES
And add this line at last:
  1. allow_writable_chroot=YES
Now, you are all set. Just enable and start the vsftpd.
Now you can access your server from any computer withing your local network. But, remember one thing, this will only work if you connect your pc with ehternet cable to your router. Otherwise, you may fall in some fierwall related issue.

To access on the client machine, you need ip address of your server. to know that type ip addr show in the terminal and rememberthe ip address. Then on the client machine terminal:
Type ftp server_ip, this will promt you provide username and password you set. Once you provided all the informations correctly, you will be logged in to the server.
ftp_login_promt Since, you are connected to the server. You can now download and upload any files locally with high speed.