darkoperator / darkoperator/Posh-SSH

Failed to read binary data! (ProtocolError)

Open
#480 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PowerShell
Stars
1.1k
Forks
222
PR merge metrics
No merged PRs in 30d

Description

Hi,

I'm having issues to connect to a new SFTP server.
I initially had the following error message when trying to connect using v.2.0.2:
New-SFTPSession : Failed to negociate key exchange algorithm.

I then upgraded to v3.0.6 and installed .net 4.8 and i now have a different error message and still unbale to connect:
New-SFTPSession : The connection was closed by the server: Failed to read binary packet data! (ProtocolError).

I'm able to connect with Putty's psftp tool.

Any idea what could be wrong?

Thank you very much.

Regards,
Val

Contributor guide

No contributing guide indexed for this repository

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 by reproducing New-SFTPSession against the reported SFTP server and compare the behavior with PuTTY's psftp tool. The issue does not name a source file or test, so trace the SFTP connection and packet-reading path; done means identifying the cause of the ProtocolError and confirming a successful connection or a documented limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
cli, 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.