What are the steps to resolve the error ‘421 service not available’ in case of ftp? Print

  • 63

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:

  1. 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.

 

  1. 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

 

  1. 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.


Was this answer helpful?

« Back