title: "No supported authentication methods available" while connecting to SFTP using WinSCP in C#
body: <p>I'm trying to connect to a SFTP server using WinSCP in C#. This is my code:</p>
  
  <pre><code>SessionOptions sessionOptions = new SessionOptions
  {
      Protocol = Protocol.Sftp,
      HostName = "ip",
      PortNumber = portNR,
      UserName = "username",
      Password = "",
      SshHostKeyFingerprint = "fingerPrint", 
      SshPrivateKeyPath = "\\PrivateKey\\PrivateKey.ppk ",
  };
  
  using (Session session = new Session())
  {
      session.Open(sessionOptions);
  }
  </code></pre>
  
  <p>But when I run the application and it reaches this like </p>
  
  <pre><code>session.Open(sessionOptions);
  </code></pre>
  
  <p>I get this Error:</p>
  
  <blockquote>
    <p>Disconnected: No supported authentication methods available (server sent: publickey,gssapi-with-mic)</p>
  </blockquote>