Hi team,
I'm having problem connecting to SFTP using the library, but it connect fine with WinSCP. Below is the debugging log.
2022-05-04 17:59:54.837 Opening log file.
2022-05-04 17:59:54.839 INFO FileLogWriter(1)[9] Info: Assembly: Rebex.Common 2018 R4 for .NET 4.0-4.7
2022-05-04 17:59:54.841 INFO FileLogWriter(1)[9] Info: Platform: Windows 10.0.19043 64-bit; CLR: 4.0.30319.42000
2022-05-04 17:59:54.841 DEBUG FileLogWriter(1)[9] Info: Culture: en; Windows-1252
2022-05-04 17:59:55.434 DEBUG Sftp(1)[9] SSH: Allowed authentication methods for 'xxxxxxxxx': publickey, password.
2022-05-04 17:59:55.434 DEBUG Sftp(1)[9] SSH: Trying public key authentication for 'xxxxxxxxx''.
2022-05-04 17:59:55.461 ERROR Sftp(1)[9] SSH: Rebex.Net.SshException: A public key corresponding to the supplied private key was not accepted by the server or the user name is incorrect.
at Rebex.Net.SshSession.tsss(String agy, String agz, SshPrivateKey aha, SshGssApiCredentials ahb, Boolean ahc)
2022-05-04 17:59:59.476 ERROR Sftp(1)[9] Info: System.InvalidOperationException: Not authenticated to the server.
at Rebex.Net.Sftp.nqxt()
at Rebex.Net.Sftp.nqzv(String uf, Boolean ug, Boolean uh, Boolean ui, kuvq uj)
I also sent out WinSCP log to support@rebex.net.
Thanks.