ftp客户端连接报错500 Illegal PORT command. ftp: bind: Address already in use解决

6年前 (2018-03-06) gtj 排错 0评论 已收录 1353℃
1.ftp连接服务度

ftp ftp.test.com 输入了用户名和密码报了错如下

ftp> ls
500 Illegal PORT command.

ftp: bind: Address already in use

然后解决如下

ftp> quote pasv
227 Entering Passive Mode (192,168,0,112,164,248).
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 #service vsftpd restart

ftp> quote pasv
227 Entering Passive Mode (192,168,0,112,143,83).
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回复。

×
订阅图标按钮
Less is more!!!