SSH.NET icon indicating copy to clipboard operation
SSH.NET copied to clipboard

Error while connecting : Renci.SshNet.Common.SshAuthenticationException: No suitable authentication method found to complete authentication.

Open hrid opened this issue 9 years ago • 1 comments

We are continuously experiencing the same error for a single user credential of a sftp server hosted in windows azure. Other users can be connected successfully with password authentication mode. Following is the code:

using (SftpClient _sftp = new SftpClient(_host, _username, _password)) { foreach (var d in _sftp.ConnectionInfo.Encryptions.Where(p => p.Key != "aes128-cbc").ToList()) { _sftp.ConnectionInfo.Encryptions.Remove(d.Key); }

        try
        {
            _sftp.Connect();

} catch { //exception occurs.. } }

//exception details:

Error while connecting : Renci.SshNet.Common.SshAuthenticationException: No suitable authentication method found to complete authentication. at Renci.SshNet.ConnectionInfo.Authenticate(Session session) at Renci.SshNet.Session.Connect() at Renci.SshNet.BaseClient.Connect()

Any help from Renci team will be appreciated. It's really critical issue with our client.

hrid avatar Dec 21 '16 16:12 hrid

I am closing the issue as it was happening due to wrong credentials saved in database.

hrid avatar Dec 24 '16 04:12 hrid