FTP server can not access the remote host or close the connection of several solutions (centos7)

After the server downloads a good ftp, try using the default configuration anonymous login try, but always being given, several possibilities are summarized below.

21 port 1.FTP not let go, solutions

//关闭防火墙
systemctl stop firewalld.service
#停止firewall
systemctl disable firewalld.service
#禁止firewall开机启动
//或者防火墙添加FTP服务
firewall-cmd --permanent --zone=public --add-service=ftp
firewall-cmd --reload

2. Since the default configuration is not a passive mode, but the access is detected in a window ftp client must use passive mode (I is for this reason), solution:

On the IE browser settings to open the FTP folder. Open IE browser, select Settings> Internet Options> Advanced. Check the Enable FTP folder view, uncheck the Use Passive FTP.
Here Insert Picture Description

  1. Change the port, but did not increase

Open the client computer, enter the path bar ftp: // server IP address: FTP port (if you do not fill port 21 is the default access port), for example: ftp://0.0.0.0:20 . Pop up a user name and password dialog configuration is successful, the correct user name and password, you can manipulate files on FTP appropriate permissions.

  1. SELinux reasons
//临时关闭
setenforce 0   # 设置SELinux 成为permissive模式  (关闭SELinux)
setenforce 1   # 设置SELinux 成为enforcing模式   (开启SELinux)
//或者永久关闭selinux
vi /etc/selinux/config
# SELINUX=enforcing
# 注释掉
# SELINUXTYPE=targeted
# 注释掉
SELINUX=disabled
# 增加
:wq! #保存退出
setenforce 0
//或者修改selinux的配置
getsebool -a | grep ftp
setsebool -P ftpd_full_access on
Published 36 original articles · won praise 11 · views 10000 +

Guess you like

Origin blog.csdn.net/s_xchenzejian/article/details/97280774