Can you help me what to do?
Message: No suitable authentication method found to complete authentication
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);
}