Ssh – way to make scp run faster on a Mac OS X

mac-osxscpsshwindows-xpwinscp

I'm trying to a upload a Flex generated SWF file (500 kb) from my Macbook (running Snow Leopard) using the command

scp main.swf server.com:/

I had setup key authentication to prevent typing the user/pass every time. This process normally takes up to two minutes using my connection at home (768kbps down/300+ kbps up).

The interesting part is that when I use WinSCP in my Windows XP machine, the process only takes 30-40 seconds max.

Both my MacBook and Windows XP machine use the same internet connection. The MacBook is connected to the router via cable (which should be faster right?) while the Windows XP connects through Wifi.

Let me know if you need additional information in order to diagnose the problem.

Thanks!

UPDATE:

Posting additional info on the two setup following xenny's lead.

OSX:
Core 2 Duo 2.0 GHz
4GB RAM

Windows XP
Pentium D 2.8 GHz
2GB RAM

Here are the WinSCP settings:
Session protocol = SSH-2
SSH implementation = OpenSSH_4.7p1 Debian-8ubuntu1.2
Encryption algorithm = aes Compression = No
File transfer protocol = SFTP-3

I tried -c aes in OSX but it displayed an "unknown cipher type" message.

Best Answer

The MacBook is using a more computationally 'expensive' cipher than WinSCP on the PC, and this is causing the slowdown.

If the MacBook is currently CPU bound, adding to the load by compressing the data stream may well make things worse.

If you use ssh -c to choose a less expensive cipher, your problem should be resolved. I'd suggest starting by looking at what cipher the XP machine is using, presuming both machines have comparable processor performance.

Related Topic