title: C# - Download file using ftp over ssh from one remote server to another
body: <p>I have requirement to download large files (20GB+) from one remote server to another remote server in C#. We already make ssh connections for other file operations. We need to initiate ftp download from ssh session in binary mode (this is remote server requirement to deliver file in specific format). Question - How do I send ftp command in ssh session to make connection with credentials and set mode as 'bin'? Basically equivalent of following using ssh:</p>
  
  <pre><code>FtpWebRequest request =(FtpWebRequest)WebRequest.Create(
          @"ftp://xxx.xxx.xxx.xxx/someDirectory/someFile");
  
  request.Credentials = new NetworkCredential("username", "password");
  request.UseBinary = true;
  request.Method = WebRequestMethods.Ftp.DownloadFile;
  
  FtpWebResponse response = (FtpWebResponse)request.GetResponse();
  </code></pre>