The pro-test is effective. When the Pagoda panel connects to ftp, a Socket error occurs and the FTP cannot be connected or times out.

After tossing for a long time, I finally solved it. When the pagoda panel connected to ftp, there was a Socket error, which caused the problem that FTP could not be connected or timed out. Since I used the pagoda panel, I found that this thing is simply too convenient, whether it is building a website or operating files. , Installing ftp is very fast and easy, but recently I bought a cloud server while I was active, and I found it when I installed FTP.
insert image description here

This ftp is just unable to connect, no, it’s not right to say that it can’t connect, it’s connected, you can look at the picture above, and the text inside shows that ftp has logged in, but in the end it timed out when getting the files inside , so it caused the ftp connection to time out and fail.
This is really the first time I encountered this, so I went to the Internet to find a solution, and I was angry when I talked about it. It was rubbish at a certain time. It was useless to find a solution and try one by one. Some people even asked what to do. You need to set up the software to connect. I’m really xxoo’s family. This is obviously not something that can be done by setting up the ftp software. The reason for the background server is that your software will not work no matter how you set it up.

In the end, I prepared to go online scientifically and searched on Google. Well, how can I say that the gap between Du Niang and Mrs. Gu is almost as high as the sky, and now it’s time to share the solution. I have personally tested this solution, dear . The test is effective, and it is not copied from some Sabie articles, and it has not been tested at all

Before talking about the solution, I would like to highlight the issue of security groups. If it is some relatively large IDCs in China, such as Alibaba Cloud, Tencent Cloud, Huawei Cloud, etc., they have the function of security groups. After you activate the server, you need to Set up a security group, otherwise it will be inaccessible, the port of ftp is 20, 21, remember to go to the security group to release. Of course, I will definitely not make such a low-level mistake, so without further ado, let’s see the solution:

The solution to the failure to connect to the pagoda ftp timeout

1. Pay attention to the internal network IP and external network IP
2. Check whether the ftp service is started (you can see it on the front page of the panel)
3. Check whether the firewall port 20, ftp port 21 and passive ports 39000-40000 are allowed (for example, Tencent Cloud/Alibaba Cloud, etc. Also need to check the security group)
4. Whether active or passive mode can not be connected
5. Create a new user to see if you can connect
6. Modify the ftp configuration file and remove # in front of ForcePassiveIP and replace 192.168.0.1 with your server's external network IP

According to these 6 steps, it can basically be solved. This is how I solved it, and many users who use Pagoda have the problem of not being able to connect to ftp

Guess you like

Origin blog.csdn.net/t1174148618/article/details/107584039
FTP