ftp> ls 500 Illegal PORT command. 425 Use PORT or PASV first.

I try put , send , ls produces such an error. Tell me where to dig.

  • Close the question, wrote the program, throws and do not worry) - Malus

1 answer 1

Port or passive mode should be set, however! Passive is easier. Try after connecting to the ftp server, but before receiving / transmitting the file, give the command "quote PASV" (without quotes). Or another option is to use another ftp client, for example Wget.

  • I tried the pass, it does not help - Malus
  • Well, you can of course still try remotehelp in Vendian ftp to try to know which commands the remote server understands, but this is more likely for masochists! It’s easier to put Wget under Venda, or something similar, so that the passive mode turns on! - areshin
  • wget only uploads files (or am I wrong?), but I need to send) - Malus