PowerShell / PowerShell/Win32-OpenSSH

The ssh input is very slow

Open
#1,944 7 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
8.3k
Forks
819
PR merge metrics
No merged PRs in 30d

Description

I'm making trzsz, which similar to lrzsz.

The trzsz wraps ssh in cmd. The download speed is fast as expected, but the upload speed is very slow.

Troubleshooting steps
  1. Download trzsz.exe from trzsz_windows_amd64.zip, or make it yourself.
git clone https://github.com/trzsz/trzsz-go.git
cd trzsz-go
GOOS=windows make
  1. Add trzsz.exe before ssh, login to a server. e.g.:
.\trzsz.exe ssh yourname@127.0.0.1
  1. Install trzsz on the server. Require the test version 0.2.111:
sudo python3 -m pip install --upgrade -i https://test.pypi.org/simple/ trzsz==0.2.111
  1. command trz to upload a file.

  2. The trzsz.exe will read the file and send the content to the ssh stdin.
    The trz will read the content from stdin and save it to the server.

"OpenSSH for Windows" version

V8.9.1.0p1-Beta

Actual output

The upload speed is about 24 KB/s.

Is the ssh process having a small buffer, and the input data from stdin is not processed in time?

cmd_trzsz

Expected output

The upload speed should be above 2 MB/s, same as on ubuntu.

ubuntu_trzsz

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 by reproducing the upload through trzsz.exe ssh on Windows with OpenSSH V8.9.1.0p1-Beta, then compare stdin throughput with Ubuntu. Done when upload reaches the expected rate and the behavior is covered by a repeatable test or benchmark.

Written by the indexing model from the issue text.

Assessment

Domain
cli, networking, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.