title: Why does FileZilla work without knowing any keys, but WinSCP doesn't?
body: <p>I got the connection details of a SFTP server, connected to it with FileZilla, and then successfully downloaded a file from that SFTP.</p>
  
  <p>The only details I had was host, port, user and pass.</p>
  
  <p>Now I'm trying to connect to this same server trough WinSCP .NET assembly (C#)</p>
  
  <pre class="lang-csharp prettyprint-override"><code>using(Session session = new WinSCP.Session()) {
      session.Open(new SessionOptions() { 
          Protocol = Protocol.,
          HostName = "ftp.*********.be",
          UserName ="*****",
          Password ="*****"
      });
  
      TransferOptions transferOptions = new TransferOptions();
      transferOptions.TransferMode = WinSCP.TransferMode.Binary;
      TransferOperationResult transferResult;
      transferResult = session.GetFiles("/downld/fileonserver.dbf",@"c:\testfolder\localfilename.dbf", false, transferOptions);
  </code></pre>
  
  <p>Whatever I try here it keeps asking for a key for SSH, but I don't have that key, I generated a 128 bit RSA key somewhere online and put it in the session options like:  </p>
  
  <pre><code>SshHostKeyFingerprint = "ssh-rsa 1024 82:09:12:b4:93:92:3a:61:10:90:61:12:b4:XX:XX:XX"
  </code></pre>
  
  <p>But this just tells me that key is invalid.</p>
  
  <p>I kind of figured out that I maybe need the public/private SSH key from the server to get this to work but I sadly don't have access to this server.</p>
  
  <p><strong>Since FileZilla can connect to it without me entering any KEYS, why can't my C# program do the same?</strong></p>
  
  <p>I'm not an expert when it comes to security related stuff, so please point me  in the right direction. I found <a href="https://stackoverflow.com/questions/44089/how-to-extract-sftp-ssh-key-from-key-cache-in-filezilla-ftp-client">this thread</a> but I don't have access to <code>.ssh</code> folder on the FTP server and I don't really get where they are going with this.</p>