You are not logged in.

#1 2013-06-12 18:59:55

mico
Member
From: Slovenia
Registered: 2004-02-08
Posts: 247

Slow download in ssh session

Hi, I hope someone could shed some light on this one...

The setup: 2 boxes, one acting as ssh client, the other one as ssh server.

The problem: When I ssh to my box on the internet, any download initiated through ssh is painfully slow, only about 40 or 50 KB/s. Only when I download or upload files from/to this box without ssh, the speed is normal, that is a few MB/s.

Examples:

From my client box:

scp filename servername:~

The file is uploaded fast, as expected.

From my client box:

wget servername/somefile

The file is downloaded fast, as expected.

From my server box:

wget somefile_on_internet

or

pacman -Syu

Download is fast only if I do this from local session (with keyboard attached to the server directly). When I do the same from ssh session, download is slow.

In any other aspect, ssh is working fine, I don't have any noticeable delay when typing and executing commands.

Thanks!

Last edited by mico (2013-06-12 19:01:52)

Offline

#2 2013-06-12 19:06:55

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,355

Re: Slow download in ssh session

Sounds like a cryptography bottleneck.  What cypher are you using, and what is your key strength?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2013-06-12 19:31:16

mico
Member
From: Slovenia
Registered: 2004-02-08
Posts: 247

Re: Slow download in ssh session

I am using ecdsa. I am not sure about the key length, but judging from file size I think it is 521 bits.

I checked CPU usage on the server while downloading through ssh, and it is almost zero, 99% idle. Same on the client.

Last edited by mico (2013-06-12 19:35:48)

Offline

Board footer

Powered by FluxBB