This guide is intended for advanced users with a myhosting.com Linux VPS users that do not have a control panel such as Plesk or cPanel/WHM. Those control panels install, run and manage FTP separately and FTP should be managed through those control panels if installed.
Novice users are highly recommended to switch to a VPS that includes either Plesk or cPanel for management of these kinds of services.
Setting up FTP on CentOS VPS
Our CentOS servers come with VsFTP available to install from your onCloud Control Panel.
- Log into your myhosting.com onCloud(tm) Control Panel at https://manage.myhosting.com.
- If you have multiple VPS', find your VPS in the list and click Select.
- Navigate in the left navigation bar to VPS > VPS Management.
- Click the "Applications" tab.
- Click "Install"
- Find 'VsFTP' in the list of available packages. Put a check beside it and click "Submit".
Setting up FTP on Debian or Ubuntu VPS
Our Debian & Ubuntu servers come with ProFTP available to install from your onCloud Control Panel.
Creating ProFTP Users
Log into your VPS with Putty or your preferred SSH tool as "root". Then, use the below commands to create a user:
useradd userftp -p your_password -d /home/ftp -s /bin/false
The above will create a user named "userftp" with the password you specify in the second step. Feel free to adjust the username as desired. It will also lock the user to the directory specified, in this case "/home/ftp". Again, this can be adjusted to your specifications.
There is alot that goes into maintaining even just FTP on a VPS, here's a link to common configurations on the ProFTP site: http://www.proftpd.org/docs/example-conf.html
On Debian or Ubuntu, the default ProFTP configuration will cause your first login to fail with 530 incorrect login error. To correct this, you need to adjust one line in your ProFTP configuration file.
# RequireValidShell off