开发者

Active FTP Mode not Working in Linux

开发者 https://www.devze.com 2023-03-04 16:08 出处:网络
I am new to Linux and I have my application running on windows for a while and for file Transfer stuff we use third party sftp and it has been running well both on Active and Passive mode.

I am new to Linux and I have my application running on windows for a while and for file Transfer stuff we use third party sftp and it has been running well both on Active and Passive mode.

Now i am migrating my app to support Linux OS, and i'm facing problem in FTP Active mode, where i ca开发者_开发知识库n transfer files in Passive mode.

I tried through FTP command where i can transfer files in both mode and when it comes implementations it gives me the following error:

500 Invalid PORT Command.

and the before this error the ftp command looks like :

PORT 0,0,0,0,234,96

where for passive it works fine. Do it need to enable any firewall settings in linux, Please help me out.


PORT 0,0,0,0,234,96

The first four octets represent the IP address, which in this case, seems like is absent. So you either missed out declaring the client's IP address in the application or may be there is some other issue with the IP addresses. Try this link for more info: FTP

Also check if its getting connected when you turn off the Linux firewall.

/etc/init.d/iptables stop

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号