torturedmind
Programmer
Good day to all. Forgive me if my post is not appropriate to this forum so kindly point me to the right direction.
Well anyways, I have a small script that should upload a group of small text files to a remote ftp server. Here's what i did:
the file PutFTPTest.ini contains the following:
Notice i did not include "bye" or "quit" at the end because i wanted to see what the responses were. I found out that there were messages after the "mput *.txt" line saying "Illegal PORT command" and "Use PORT or PASV first.". So i enable debugging to see what the debugging messages were:
After the "mput *.txt" line, a debug message saying "PORT 192,168,xxx,xxx,xxx,xxx" then the error message "Illegal PORT command" followed by "Use PORT or PASV first." for every attempt to upload a file. I was wondering - why was it PORTing my IP address? Anyways, i temporarily disabled my firewall (Comodo) and run again FTP. The result was the same. Any help will be much appreciated.
kilroy![[knight] [knight] [knight]](/data/assets/smilies/knight.gif)
philippines
"Once a king, always a king. But being a knight is more than enough."
Well anyways, I have a small script that should upload a group of small text files to a remote ftp server. Here's what i did:
Code:
ftp -i -n -s:PutFTPTest.ini
Code:
open ftp.ourdomain.com
user ftpuser1 abcdefg1234567
cd /var/myfolder
ascii
quote PASV
mput *.txt
Notice i did not include "bye" or "quit" at the end because i wanted to see what the responses were. I found out that there were messages after the "mput *.txt" line saying "Illegal PORT command" and "Use PORT or PASV first.". So i enable debugging to see what the debugging messages were:
Code:
ftp -i [b][blue]-d[/blue][/b] -n -s:PutFTPTest.ini
kilroy
![[knight] [knight] [knight]](/data/assets/smilies/knight.gif)
philippines
"Once a king, always a king. But being a knight is more than enough."