Today is the day before the May Day holiday. When I started my blog and found that I had not backed up data for a long time, I slowly exited the technical field due to work reasons, but I still look forward to the technical world! Come on!
Problem Discovery
When I log on to the blog server using the FTP client, a connection error occurs.
425 Sorry, invalid address given www. bKjia. c0m
Error: failed to connect to the server.
Solution 1
Although I have been away from the technical field for a while, I am still good at learning and solving problems, so I started to solve the problem with my mind.
In fact, the method is very simple.
Add the "yes" configuration file in the Pure-ftpd configuration Directory: DontResolve
Then restart Pure-ftpd
The problem is solved.
Cause Analysis
Use aptitude to install the binary installation package of pure-ftpd. The system will automatically use the default pure-ftpd startup parameter. By default, UNIX user authentication will be used (which is the cause of failure of the ftp virtual user login authentication created later ), and enable the reverse lookup function from the user's IP address to the domain name (which is the cause of the 425 error ).
Another solution
The Post says that a parameter in ftp has been modified:
Vi/etc/xinetd. d/pure-ftpd
Add the following parameters: (for new parameters, see red font)
The Code is as follows:
Service ftp
{
Server_args =-H
Socket_type = stream
Protocal = tcp
Wait = no
# Disable = yes
User = root
Server =/user/sbin/pure-ftpd
}
Restart the FTP service after adding:
1 cd/etc/init. d
2./xinetd restart
Use man puer-ftpd to check that the default program of pure-ftpd resolves the IP address into a domain name, while the/etc/hosts file does not match the external IP address to the domain name.
1. Modify the hosts file and match the IP address with the Host Name (I have already done this after the dual host is installed)
2. Use the-H Parameter so that pure-ftp does not resolve the domain name.
Now the problem is solved.