sshnet / sshnet/SSH.NET

Wrong checksum

Open
#809 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
4.4k
Forks
993
Avg merge
9d 21h
Merged PRs (30d)
1

Description

Hello, I have the same problem with https://github.com/sshnet/SSH.NET/issues/212
with sourceforge.net
but WinCSP works correct
Local sha256 is diff with server sha256

private static void HandleKeyEvent(object sender, AuthenticationPromptEventArgs e)
        {
            foreach (AuthenticationPrompt prompt in e.Prompts)
            {
                if (prompt.Request.IndexOf("Password:", StringComparison.InvariantCultureIgnoreCase) != -1)
                {
                    prompt.Response = "anypass";
                }
            }
        }
  KeyboardInteractiveAuthenticationMethod keybAuth = new KeyboardInteractiveAuthenticationMethod("jjjj");
            keybAuth.AuthenticationPrompt += new EventHandler<AuthenticationPromptEventArgs>(HandleKeyEvent);
            ConnectionInfo conInfo = new ConnectionInfo("frs.sourceforge.net", 22, "iikk", keybAuth);
            using (var sftp = new SftpClient(conInfo))
            {
                sftp.Connect();
 using (FileStream fs = new FileStream(zip_path, FileMode.Open))
                {
                          sftp.UploadFile(fs, "file.zip");
                }
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the provided SftpClient.UploadFile call and trace how SSH.NET handles the uploaded file, comparing the local archive checksum with the server result. Done means reproducing the mismatch and identifying a confirmed cause or documenting why the report cannot be acted on.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.