Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

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

$
0
0
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);
        }

Viewing all articles
Browse latest Browse all 1729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>