Before we go any further, let’s say a word or two about ‘vsftpd‘.
‘vsftpd‘, which stands for ‘Very Secure FTP Daemon’ is secure, stable and extremely fast FTP server for *NIX like systems.
‘vsftpd‘ is in CentOS 6 repositories so we can easily install it via yum, but before doing it so let’s first make sure our system is fully up-to-date by running:
# yum update
once your system is up-to-date proceed with installing the ‘vsftpd’ FTP server by executing:
# yum install vsftpd -y
once it’s installed it is a good idea to have an ftp client installed on your system so you easily connect to other ftp servers. To install an ftp client on your CentOS server run the following:
# yum install ftp -y
OK, next thing we need to do is to edit ‘vsftpd’ configuration file which is located inside the ‘/etc/vsftpd/’ directory and is named as ‘vsftpd.conf’. So, open this file using your favorite editor and make sure it looks like the one below:
# vim /etc/vsftpd/vsftpd.conf anonymous_enable=NO local_enable=YES write_enable=YES local_umask=022 dirmessage_enable=YES xferlog_enable=YES connect_from_port_20=YES xferlog_std_format=YES chroot_local_user=YES listen=YES pam_service_name=vsftpd userlist_enable=YES tcp_wrappers=YES
once the configuration file is in place, you can now start your ftp server and add it to your system’s startup so it can be automatically started during the boot time.
to start the vsftpd server run:
# /etc/init.d/vsftpd restart
to add the vsftpd server to your system’s startup run:
# chkconfig vsftpd on
you can use the commands below to check if the vsftpd server is started and listens on port 21:
# ps aux | grep -v grep | grep vsftpd root 23714 0.0 0.1 6832 668 ? Ss Mar16 0:00 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
# netstat -tunlp | grep vsftpd tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 23714/vsftpd
If everything is OK, you can now connect and authenticate to your FTP server using any of your local users.
Of course you don’t have to do any of this if you use one of our linux virtual server hosting services, in which case you can simply ask our expert linux admins to install vsftpd for you. They are available 24×7 and will take care of your request immediately.
PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.