All Categories

Beginners guide to FTP & SFTP Server Configuration

Through this blog we will be discussing about FTP & SFTP server configuration on Linux Server.

So what is FTP?

File Transfer Protocol (FTP) is a standard protocol used to transfer computer files between client and server on a computer network.

FTP – File transfer protocol is used to transfer files from one host to another over TCP. FTP is a secure transmission medium and through this blog we will configure FTP server on Centos Linux.

Note: Before configuring FTP server, you require a sudo user who has root privileges. Perform all the steps through root only.

Prefer root to configure ftp or vsftpd server.

Configuring FTP Server on Centos 6 Linux

Step 1. Start with installing vsftpd package:

yum install vsftpd -y

ftp installation

Step 2. Install ftp packages:

Yum install ftp* -y

ftp installation

Step 3. Open  /etc/vsftpd/vsftpd.conf file to configure ftp server:

vi /etc/vsftpd/vsftpd.conf

vsftpd configuration

Update all the properties accordingly to below lines:

chroot_local_user=YES  #(this property used to limit the users to their home directories.)

vsftpd configuration

Next, find these properties and Uncomment the below lines:


vsftpd configuration

Step 4. Next, create a user for accessing FTP server.

useradd  acd

useradd acd

Provide password to this user.

passwd acd

password acd

Step 5. Start vsftpd service by using the below command.

service vsftpd start
service vsftpd restart

service ftpd restart

Now type the below command to start FTP server service automatically at startup:

chkconfig vsftpd on

Step 6: Disable firewall ( Iptables )

service iptables stop


chkconfig iptables off


Step 7: Move to pub directory to upload files:

cd /var/ftp/pub

cd /var/pub

Now put some files to pub directory so one can access that files.

mkdir acadgild

Vi prateek

Vi kiran

Refer to the screenshot given below:


Now open FTP path (ftp://ftp-server-IP or ftp://server_name/) in remote machine’s browser. It will ask for Authentication. After that you can see the created files list.



ftp login


12FTP Server is now configured in Linux Server.

Hope this blog was informative enough to get you started. keep visiting



Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Related Articles