yum -y install vsftpdOnce the process has completed your system should have automatically started the vsftpd process. What we now want to do is use the command, In order to stop the service so we can go ahead and make some configuration changes.
service vsftpd stopWe're now going to go ahead and use a pre-packed application with RHEL distributions called vi. Vi is very similar to Notepad on Windows. It's a text editor that you can use to edit configuration files etc, if you need more help with Vi, you can follow this guide. Now you're going to need to proceed with the following command to bring up the configuration file for vsftpd:
vi /etc/vsftpd/vsftpd.confTo navigate around whilst in vi you will need to use your arrow keys on your keyboard. If you would like you make any changed you will need to press i on your keyboard to enable the insert mode allowing you to add / edit / remove text. For example, I want to enable write_enable as it's currently set to write-enable=NO. I would simply change NO to YES whilst in the insert mode.
service vsftpd start
apt-get updateAfter we've issued this command we can go ahead and proceed to install the VSFTPD package by issuing the following command:
apt-get -y install vsftpdOnce installed we want to stop the FTP server from running, to do this we would issue the following command:
service vsftpd stop
/etc/init.d/vsftpd stopOnce stopped we can proceed to edit the vsftpd configuration file. To do this we're going to use a package that comes with both these distributions called nano much alike vi we can edit text in our configuration files.
nano /etc/vsftpd.confThis will then bring up the nano editor with the vsftpd configuration file loaded up inside of it. Unlike using vi we don't need to enter the insert mode to change anything in our configuration file we can simply edit it like we would if we were using Notepad for example.
service vsftpd start
/etc/init.d/vsftpd startIf you're having any problems connecting to your FTP server you may want to try turning off iptables or ubuntu firewall to test. You can do this by issuing one of the following commands depending on the distribution you're running.
service iptables stop (To start again service iptables start)
ufw disable (To re-enable ufw enable)If it turns out it was a problem with either IPTables or Ubuntu firewall, please take a look at our tutorial on how to add firewall rules here
Still need help? Open a support ticket