ftp连接服务器500 Illegal PORT command. ftp: bind: Address already in use解决

本文介绍了在使用FTP连接服务器时遇到的`500 Illegal PORT command.`和`425 Security: Bad IP connecting.`错误。错误源于服务器配置了多个IP地址。解决方法是编辑`/etc/vsftpd/vsftpd.conf`文件,添加`pasv_promiscuous=YES`,然后重启vsftpd服务。通过这些步骤,成功进入被动模式并列出目录。
摘要由CSDN通过智能技术生成

ftp连接服务器,用ls查看列表时报错

ftp> ls
500 Illegal PORT command.
ftp: bind: Address already in use
解决如下
ftp> passive
Passive mode on
然后ls还是报错

ftp> ls
227 Entering Passive Mode (192,168,0,112,169,241).

425 Security: Bad IP connecting.

这个原因是因为服务器本身设置了两个ip地址

解决办法是

vim /etc/vsftpd/vsftpd.conf
添加:pasv_promiscuous=YES
保存后退出

重启vsftpd
/bin/systemctl restart vsftpd.service

连接服务器
ftp> passive
Passive mode on.
ftp> ls
227 Entering Passive Mode (192,168,0,112,85,218).
150 Here comes the directory listing.
drwx------ 2 1001 1001 4096 Mar 06 01:46 test

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值