Slow SSH copies to an Ubuntu server?

Using Opus 8.2.2.5 Unicode.

Recently built a new Linux server running Ubuntu 7.04; OpenSSH server is 4.3p2, using OpenSSL 0.9.8c.

When copying files from Opus via SSH to this box, I am getting horrible performance - 300k/sec max. However, from the same Windows machine, both WinSCP and Dreamweaver seem to run fine. Also, scp-ing to and from another Linux box to the other in question is fine.

So it seems like Opus is the only one that's being slow. Has anyone else run into this? Going to another server on the same network (running a different version of OpenSSH/SSL) is fine, so I can only take a guess that it's a goofy interaction between Opus and this particular OpenSSH version. ?

I should add: This seems only to be a problem uploading to the linux box; Downloading files from it via Opus is cruising right along at ~6MB/sec

Do you see the same performance problem if you upload a file using PuTTY's PSCP.exe?

Nope. That goes at ~4.5MB/sec too.

Weird. :frowning: The only things I can think of are that it might be the buffer size that Opus is using causing problems with this particular server, or the version of the SSH/SSL code that Opus is linked against. I don't know a good way to test either theory though.

Just to discount anything silly, you're transfering the same file to the same place in all your tests, right? And you haven't set an Upload Speed Limit for this particular site in Opus, have you? (Speed tab in the FTP bookmarks. Check under both Default Settings and the specific entry for the site in question.)

Yup, same file to test (or even not, I get the same results no matter what it is). No speed limit, I don't even see that tab you mention (is that an Opus 9-ism?) Everything is pretty much default.

At the end of the day it doesn't matter too much, as most files will be transferred to this server via samba, but this behaviour certainly puzzled me.

There should not be any significant difference but uploads are often slower due to bandwidth issues.

Don't be confused between FTP over SSH with SCP over SSH. The FTP protocol imposes some extra processing and is slower than SCP. Opus supports SFTP nor SCP.

hi
I am suffering the same slow speeds on down loads

I tried psftp and this was fast (1-3Mb) on up and down loads

Can you paste the FTP log for a simple transfer here? Maybe it will reveal something.

Can you paste the FTP log for a simple transfer here? Maybe it will reveal something.[/quote]
Sorry I meant uploads to ftp are slow.

here is upload Dopus ftp log.

Opening Connection 192.168.1.107:22
SSH: Server version: SSH-2.0-OpenSSH_3.8.1p1 Debian-8.sarge.4
SSH: We claim version: SSH-2.0-PuTTY-FZ-Local: Sep 13 2007 14:39:56
SSH: Using SSH protocol version 2
SSH: Doing Diffie-Hellman group exchange
SSH: Doing Diffie-Hellman key exchange
SSH: Host key fingerprint is:
SSH: ssh-rsa 1024 53:6b:5e:e3:7b:8c:00:c7:8c:77:b7:95:7c:06:c9:c7
SSH: Initialised AES-256 client->server encryption
SSH: Initialised AES-256 server->client encryption
SSH: Initialised zlib (RFC1950) compression
SSH: Initialised zlib (RFC1950) decompression
SSH: Access granted
SSH: Opened channel for session
SSH: Started a shell/command
SSH: CTS CONNECTED
SSH: Listing Directory
SSH: List complete 8 files.
SSH: Sending hauppauge_cd_3.4b.zip
SSH: Done set file time.
SSH: Listing Directory
SSH: List complete 9 files.

It's about 3-4 time faster downloading from ftp than uploading to.

Download log
Opening Connection 192.168.1.107:22
SSH: Server version: SSH-2.0-OpenSSH_3.8.1p1 Debian-8.sarge.4
SSH: We claim version: SSH-2.0-PuTTY-FZ-Local: Sep 13 2007 14:39:56
SSH: Using SSH protocol version 2
SSH: Doing Diffie-Hellman group exchange
SSH: Doing Diffie-Hellman key exchange
SSH: Host key fingerprint is:
SSH: ssh-rsa 1024 53:6b:5e:e3:7b:8c:00:c7:8c:77:b7:95:7c:06:c9:c7
SSH: Initialised AES-256 client->server encryption
SSH: Initialised AES-256 server->client encryption
SSH: Initialised zlib (RFC1950) compression
SSH: Initialised zlib (RFC1950) decompression
SSH: Access granted
SSH: Opened channel for session
SSH: Started a shell/command
SSH: CTS CONNECTED
SSH: Listing Directory
SSH: List complete 9 files.
SSH: Receiving hauppauge_cd_3.4b.zip
46736223 bytes received in 62.719 seconds (727.552 Kbytes/sec)

sorry to continue hijacking this thread (I'll start another if needs be)

I forgot to mention I am using Dopus 9.0.0.9 and Vista Ultimate

PSFTP version is 0.6

If you're using Vista, try running this from an Administrator command prompt:

netsh interface tcp set global autotuninglevel=disabled

I'm not sure if you then need to disconnect/reconnect your network connection or reboot so I guess rebooting afterwards is best to be sure.

This command fixes or speeds up a number of network-related things for some people. The autotuninglevel feature seems to cause problems for a lot of people (myself included), depending on their network hardware and the software being used.

If you find it makes no difference then you can go back to the default settings by running this command:

netsh interface tcp set global autotuninglevel=normal

I've read about it slowing down particular FTP clients, for example. For me, my Windows Live Messenger kept disconnecting after a while but still appeared to be connected (yet nothing worked and nobody could message me). After I changed the setting it works fine again. I don't know for sure if it'll help in your case but it seems to fix so many different network related problems that it's worth a try.