sshnet / sshnet/SSH.NET

Proxy Garbage

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

I getting garbage appended to files downloaded when using SSH.NET to setup a proxy.

            client = new SshClient(IPAddress, Port, Username, Password);
            client.Connect();
            proxy = new ForwardedPortDynamic(1080);
            client.AddForwardedPort(proxy);

At the beginning of each file downloaded there will be seven garbage characters appended onto it.
For Example:
À¨_'ǯ
Hex:
01 C0 A8 5F 27 C7 AF

I know I can just chop off the first few characters of every file downloaded but I would rather find a clean solution to the issue.

Any help would be much appreciated.

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 repository file or test is identified. Start by reproducing the issue with the shown SshClient and ForwardedPortDynamic setup, then trace the proxy and download path while comparing the downloaded bytes with the source. Done means files downloaded through the proxy no longer begin with the seven listed garbage bytes.

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.