Pure-ftpd unable to connect to server 425 Error

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.