Plesk FTP not working: 421 Service not available, remote server has closed connection


When you have Plesk running on your server and FTP is not working because of the following error message:

421 Service not available, remote server has closed connection

Then probably the hostname is not set up correctly.
Please run the following command, you should get ‘unknown host’:

# ping `hostname`

If this is case, please open /etc/hosts and add your hostname (in this example your server’s IP is 1.2.3.4) and restart the networking services, for example:

/etc/hosts:
1.2.3.4 yourservers.hostname.net

# /etc/init.d/network restart

Try to connect to FTP, it should work, enjoy!