sshnet / sshnet/SSH.NET

Error - Failed to read binary packet data (ProtocolError)

Open
#340 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

We recently ported code to Windows Server 2012 R2 64bit from 2008 Standard 64bit. We started getting following errors:

Stack Trace:Renci.SshNet.Common.SshConnectionException: The connection was closed by the server: Failed to read binary packet data! (ProtocolError)

We use SSH Key Exchange with passphrase. We tried with latest stable release and beta release but no luck. The same code would run just fine in Windows 2008.

I was wondering if this has anything to do with SHA1 Vs SHA2 or change in supported key exchange algorithms between OS.

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

No files, tests, or entry points are named. Start by reproducing the binary-packet ProtocolError on Windows Server 2012 R2 and comparing it with Windows Server 2008, then trace the SSH key-exchange and packet-reading path; done means identifying the compatibility cause and documenting or testing the resulting fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
networking, security
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.