sshnet / sshnet/SSH.NET

Wrong checksum

オープン
#809 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
C#
スター
4.4k
フォーク
993
平均マージ
9日 21時間
マージ済み PR(30日)
1

説明

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");
                }
}

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

提供された SftpClient.UploadFile 呼び出しから始め、SSH.NET がアップロードされたファイルをどのように処理するかを追跡し、ローカルアーカイブのチェックサムとサーバーの結果を比較します。差異を再現して確実な原因を特定するか、報告に対応できない理由を文書化できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp
領域
networking
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。