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

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

解决


更多内容:点击打开链接

 




猜你喜欢

转载自blog.csdn.net/sfdst/article/details/79454950