title: How to list FTP directories using telnet?
body: <p>I installed <a href="https://filezilla-project.org/download.php?type=server" rel="nofollow noreferrer">FileZilla ftp server</a> on one of local server in local network. I can successfully list folders for user <code>user</code> using ftp command (actually I installed Ubuntu in windows 10 through Microsoft store).</p>
  
  <pre><code>ftp -p 192.168.11.24 21
  Connected to 192.168.11.24.
  220-FileZilla Server 0.9.60 beta
  220-written by Tim Kosse (tim.kosse@filezilla-project.org)
  220 Please visit https://filezilla-project.org/
  Name (192.168.11.24:ms): user
  331 Password required for user
  Password:
  230 Logged on
  Remote system type is UNIX.
  ftp&gt; nlist /
  227 Entering Passive Mode (192,168,11,24,203,217)
  150 Opening data channel for directory listing of "/"
  /crm-offers-browse-2018-03-08.xlsx
  /log_file.txt
  /model.png
  226 Successfully transferred "/"
  </code></pre>
  
  <p>If I try the same with telnet (I sniffed the commands using Wireshark) command <code>nlist</code> does not work. It returns <code>425 Can't open data connection</code>. What am I missing here?</p>
  
  <p><a href="https://i.stack.imgur.com/Ogfsh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ogfsh.png" alt="enter image description here"></a></p>
  
  <pre><code>telnet -e _ 192.168.11.24 21
  Telnet escape character is '_'.
  Trying 192.168.11.24...
  Connected to 192.168.11.24.
  Escape character is '_'.
  220-FileZilla Server 0.9.60 beta
  220-written by Tim Kosse (tim.kosse@filezilla-project.org)
  220 Please visit https://filezilla-project.org/
  USER user
  331 Password required for user
  PASS user
  230 Logged on
  SYST
  215 UNIX emulated by FileZilla
  PASV
  227 Entering Passive Mode (192,168,11,24,205,245)
  NLST /
  425 Can't open data connection for transfer of "/"
  </code></pre>