Many of our friends use FTP to connect to the host space or the FTP space of the server. Sometimes the password and port are the same, but the connection cannot be made. Instead, 227 Entering Passive Mode and ftp: connect: Connection refreshed error messages appear. What is the problem? In fact, our default is the active connection mode. If we change to the passive connection mode, we can solve this problem.
![Solution to the problem of server connection FTP connection being rejected. The connection refused error is prompted](https://images.laozuo.org/wp-content/uploads/2022/07/ftp-1.png)
The settings of our different FTP tools are different, slightly different, but similar. We find the connection method and try to switch between active and passive. If we are an ECS, Laozuo suggests using SFTP instead of ftp.