This project is read-only.

The upload file SFTP there was an error saving the data information: No suitable authentication method found to complete authentication. - , Before Connect

Jan 22, 2015 at 9:20 AM
Can you help me what to do?
Message: No suitable authentication method found to complete authentication
        try
        {
            //config.SftpHost
            //config.SftpPort
            //config.SftpUsername
            //config.SftpPassword
            //config.SftpFile
            //download
            var config = haiku.Configuration.Instance;
            var sftp = new Renci.SshNet.SftpClient(config.SftpHost, config.SftpPort ,config.SftpUsername, config.SftpPassword);

            messingMore += string.Format(", Before Connect");

            sftp.Connect();

            messingMore += string.Format(", After Connect");

            messingMore += string.Format(", sftp.IsConnected: {0}", sftp.IsConnected);
            messingMore += string.Format(", sftp.KeepAliveInterval: {0}", sftp.KeepAliveInterval);
            messingMore += string.Format(", sftp.OperationTimeout: {0}", sftp.OperationTimeout);
            messingMore += string.Format(", sftp.ProtocolVersion: {0}", sftp.ProtocolVersion);
            messingMore += string.Format(", sftp.WorkingDirectory: {0}", sftp.WorkingDirectory);
            messingMore += string.Format(", sftp.BufferSize: {0}", sftp.BufferSize);

            MemoryStream sftpOutput = new MemoryStream();
            sftp.DownloadFile("/homu/gsmu/grade_export/gsmu-sandbox/haiku_subtotal_scores.csv", sftpOutput);
            sftp.Disconnect();
        }
        catch (Exception e)
        {
            success = false;
            message = string.Format("The upload file SFTP there was an error saving the data information: {0}", e.Message);
        }
Jan 22, 2015 at 9:29 AM
sftp.Connect() method is saying that:
No suitable authentication method found to complete authentication
Jan 22, 2015 at 12:14 PM
This message means the client was unable to authenticate at the server.
The reason why should be visible in the ssh server logs on your target machine.