FTP connection to the server cannot be established. FTP client returns the error:
421 Service not available, remote server has closed connection.
Above one is the complete error , you get sometimes, while ftping to the server.
Please refer the following steps to resolve it:
- check the /var/log/messages log file on server
getaddrinfo ‘Hostname_Is_Here’ error: Name or service not known
warning: unable to determine IP address of ‘host.domain.tld domain’
This is because FTP server cannot determine IP address of the server by hostname.
- Try to PING Hostname
#ping hostname
If ping does not respond, you will have to define the correct hostname in the configuration files as follows and restart network service.
/etc/hosts
/etc/sysconfig/network
/etc/init.d/network restart
- If still the following error occurs
Authentication failed for user [anonymous]
Please check whether your local machine’s ip is blocked.You see that csf has blocked it.
Unblock it and restart the firewall.That should solve the issue.