- Download the EPEL repository which will allow us to install ProFTPD on our virtual private server with yum.
- The next step is to install ProFTPD.
sudo yum install proftpd
- Download a FTP client, so that we can connect to an ftp server from the command line:
sudo yum install ftp
Once ProFTPD is installed, you can make the needed adjustments in the configuration. Unlike some other FTP configurations, ProFTPD disables anonymous login from the outset and we only need to address a small change in the config file.
- Open up the file:
sudo vi /etc/proftpd.conf
- Change the Server Name to your host name using the letter “i” to insert.
- In order to Save and Exit from that file, press “Esc” key and type the following - :wq!
Then, to prevent any issues, add your droplet name and IP address to the hosts file.
sudo vi /etc/hosts
The line can look something like this - 22.214.171.1249 servername
- Restart the service after you have made all of your changes -
sudo service proftpd restart
Access the FTP server
You can reach an FTP server in the browser by typing the domain name into the address bar and logging in with the appropriate ID. Keep in mind, you will only be able to access the user's home directory.
Alternatively, you can reach the FTP server through the command line by typing:
Then you can use the word, "exit," to get out of the FTP shell.