0

This question could be a follow-up of this question. Where the OP was asking about how to list directory contents using passive mode and specific ports.

I wonder how do I do it in active mode using default port 21 ?

This is how I've been doing it until now:

input screenshot

"Here comes the directory listing." and that's where it all ends.

Am I missing something here ?

Output from log:

enter image description here

Mark
  • 101
  • 1
  • 1
  • 5
  • The contents of the directory isn't being listed in the output. I used `put` to upload 2 text files so 2 text files should've been listed. – Mark Jul 12 '20 at 17:44
  • What's in the log on the server? – Michael Hampton Jul 12 '20 at 17:56
  • @MichaelHampton Do you know where it's usually located ? On the web I found `ftp.log` but `whereis ftp.log` gave me nothing. – Mark Jul 12 '20 at 18:19
  • @MichaelHampton I found it and added it to my question. It's clear that I made 2 successful uploads. So empty directory can be ruled out. – Mark Jul 12 '20 at 18:43
  • I noticed `dir` works locally in ftp shell for listing files but it doesn't work when I connect to the ftp server remotely. – Mark Jul 12 '20 at 21:01
  • You tried it in passive mode? – Michael Hampton Jul 12 '20 at 21:01
  • No. I keep trying making it work with out-of-the-box configuration. – Mark Jul 12 '20 at 21:03
  • The thing is the ftp server is in Virtualbox and I'm connecting to it from host machine. That probably is playing its role in this as well. – Mark Jul 12 '20 at 21:03
  • Nobody does active mode FTP anymore. Not for decades. Mostly nobody does FTP at all anymore. – Michael Hampton Jul 12 '20 at 21:06
  • I know it's an obsolete tech. I'm doing this just for experimental / education purposes. – Mark Jul 12 '20 at 21:19
  • Nobody bothers with ftp server anymore. You can host your own cloud storage or simply use third-party solutions. – Mark Jul 12 '20 at 21:23

0 Answers0