版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/weixin_38637595/article/details/89817775
- filezilla 连接ftp提示
421 service not available
- ftp xxx.xxx.xxx.xxx提示
421 service not available
- 抓包,提示
421 service not available
思路
- 先看日志,把日志开起来
vi /etc/vsftpd.conf
use_localtime=YES
dual_log_enable=YES
- 连接一次,日志报错
Tue Apr 23 14:39:26 2019 [pid 42813] CONNECT: Client "117.149.3.174", "Connection refused: tcp_wrappers denial."
- 查看
/etc/hosts.deny
all:all
- 原来是服务被禁止登录了,那么只要开来就可以了
- 在
/etc/hosts.allow
中加上
vsftpd:all:allow