It’s very simple to set up FTP service on the server, please do as instructed below to set up FTP service and set up a customer to use FTP.
Before setting up FTP you need to validate that it is not already set up on your server. For centos os use the command to check whether it is installed or not,
If it is installed then it will display like vsftpd is stopped or operating. If not adhere to the actions below to set up and configure FTP.
You can easily set up vsftpd on your server from command line, use the following command to set up the FTP service.
yum install vsftpd
After that you also have to install the FTP client, so that you can connect to an FTP server, for that use the below command
yum install ftp
The configuration file of vsftpd is /etc/vsftpd/vsftpd.conf
You need to modify the configuration file and turn off unknown access. For that change the Anonymous_enable to No.
After that, uncomment the local_enable option and changing it to yes:
Finish up by uncommenting command to:
After that restart the vsftpd service
service vsftpd restart
Then run the following command to make sure that vsftpd runs at boot:
chkconfig vsftpd on
[wpfmb type=’info’ theme=2]If you want to FTP via SSH you can check my post on how to FTP from command line[/wpfmb]
Create FTP user:
Now your FTP server is up and operating. It is time to add additional customers to FTP server so that they can sign in into account to upload / download files. To add a user and set the password, use the command below:
# adduser -c 'FTP USER cpanelplesk' -m cpanelplesk #passwd cpanelplesk
Now the user account is created and you can access the ftp account using the created username and password.