Login via FTP fails with “530 Login incorrect” error
I am trying to access the Parallels Plesk Panel (PP) server via FTP using the domain of the FTP user or webuser, but I get the following error:
530 Login incorrect.
421 Service not available, remote server has closed connection
This error may be caused by an incorrect user name/password pair. Also, this error occurs in cases where the FTP user does not have enough permissions to access their home directory, or this directory does not exist at all.
Make sure that the right user name and password are used. To be sure, you can set a new password for the problem user through the PP Control Panel and try to log in via FTP again.
Check that the user’s home directory exists and that it is accessible by the user. For example, assume that the “username” user cannot log in via FTP.
- Log in to the PP server as the “root” user
- Check where the home directory for this user is:
# mysql -uadmin -p`cat /etc/psa/.psa.shadow ` psa -e ‘select home from sys_users where login=”username”‘
| home |
| /var/www/vhosts/domain.com |
- Compare this directory with the one from /etc/passwd (they should match):
# grep ‘^username:’ /etc/passwd
If they do not, rename the user to any new name through the PP CP, and then rename it back. This should fix the problem.
- Correct permissions if needed:
# chmod 755 /var/www/vhosts/domain.com
- Try to log in via FTP again.
Reference : http://kb.parallels.com/en/4647