title: Text based FTP client settings behind a proxy
body: <p>I need to create a bash script which will connect to an FTP server, upload a file and close the connection. Usually this would be an easy task but I need to specify some specific proxy settings which is making it difficult.</p>
  
  <p>I can connect to the FTP fine using a GUI client i.e. Filezilla with the following settings:</p>
  
  <pre><code>Proxy Settings
  --------------
  FTP Proxy : USER@HOST
  Proxy Host: proxy.domain.com
  Proxy User: blank
  Proxy Pass: blank
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/fIZUx.png" alt="Proxy Settings"></p>
  
  <pre><code>FTP Settings
  ------------
  Host : 200.200.200.200
  Port : 21
  User : foo
  Pass : bar
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/j9GIE.png" alt="FTP Settings"></p>
  
  <p>What I can't seem to do is replicate these settings within a text based ftp client i.e. ftp, lftp etc. Can anyone help with setting this script up?</p>
  
  <p>Thanks in advance!</p>