Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: SFTP SSH File transfer slow

  1. #1
    Join Date
    Apr 2010
    Beans
    5
    Distro
    Ubuntu 10.04 Lucid Lynx

    SFTP SSH File transfer slow

    I'm trying to transfer some files using filezilla and the SFTP - SSH File Transfer Protocol and I'm getting around 9 MB/s. If I transfer in Samba I'm getting 90 MB/s. I am behind a 1000 Mbps Gigabit Switch and it is all showing to be connected correctly. What can I do to speed up this SFTP transfer? Kind of a pain to drag and drop with Samba right now.

  2. #2
    Join Date
    Sep 2009
    Beans
    467

    Re: SFTP SSH File transfer slow

    try winscp and use the option of scp instead of sftp. if you are doing windows to linux. if linux to linux use the command console.

  3. #3
    Join Date
    Apr 2010
    Beans
    5
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: SFTP SSH File transfer slow

    ok just downloaded and set up winscp and used scp and my transfer speeds are still slow. 8,120 KiB/s

  4. #4
    Join Date
    Oct 2006
    Location
    Australia
    Beans
    69
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: SFTP SSH File transfer slow

    Quote Originally Posted by Lokro View Post
    ok just downloaded and set up winscp and used scp and my transfer speeds are still slow. 8,120 KiB/s
    this slow speed is the price you're paying for encryption. If you're on a home or trusted network just use ftp and ftpd. 500+ Mb/s depending on whatever you're transferring.
    mouse? I don't need no stinking mouse!

  5. #5
    Join Date
    Jul 2005
    Location
    JC, KS
    Beans
    5
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: SFTP SSH File transfer slow

    I have noticed the same problem. Using WinSCP on Win7 64 I get about the same (~6KBps)transfer rates to/from my Ubuntu 9.10 Server, which is two feet away on a gigabit LAN. When transferring from my Fedora 11 box at my house via the internet, I cap out my bandwidth limit (>30KBps. I'm sure that I'm taking a performance hit for encryption, but it doesn't seem to affect my Fedora box.
    Samba transfers from the same Ubuntu Server are in the neighborhood of 70 MBps.

  6. #6
    Join Date
    Apr 2008
    Location
    Far, far away
    Beans
    2,148
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: SFTP SSH File transfer slow

    I really don't see how the encryption could hit xfer so hard. I mean ecryptfs can do the encryption with only a very slight degradation. I don't have another answer for you but it seems unlikely that the ssh encryption routines would be that much worse.

    I did do a few tests on my LAN (GBit). Results using scp:

    Code:
    default        - 20 MB/s (aes128-ctr)
    -c blowfish    - 36 MB/s
    -c 3des        - 12 MB/s
    -c arcfour     - 50 MB/s
    -c cast128-cbc - 22 MB/s
    -c aes256-cbc  - 30 MB/s
    It seems most of them are better than the default, and I noticed they start out fast and slow down as they progress (350 MB file). I suspect that is due to source file not being in cache - which means that target drive speed plays a big part in limiting speed (at least in my case as this server is using a flash drive which is limited to 30MB/s at very best). ie. I'm seeing mostly speed being limited by the target drive.

    Using dd to copy the same file to /dev/null runs 325 MB/s (which means it's all in the cache).

    I think blowfish was likely best for consistency overall.
    Last edited by BkkBonanza; September 14th, 2010 at 11:07 AM.

  7. #7
    Join Date
    Sep 2010
    Beans
    12

    Re: SFTP SSH File transfer slow

    I'm seeing the same problem. My sftp whether from Filezilla or the command line is terribly slow. The remote server is RedHat enterprise 3. My local client is Ubuntu 10.04.

    My data rate briefly started out around 30 kb/s (which is already very bad) and then degrades to about 3-4 kb/s.

    Both server and client are essentially idle according to top. Plenty of memory, cpu, etc available.

    The transfer is across the internet, not my LAN, but when I use a filezilla on windows client I get far better rates.

    Any idea what could be wrong or what I can do?

  8. #8
    Join Date
    Aug 2006
    Location
    World wide
    Beans
    191
    Distro
    Lubuntu 11.10 Oneiric Ocelot

    Re: SFTP SSH File transfer slow

    I'm also having the same problem. I'm running Ubuntu server 10.04.1 and Ubuntu 10.04 desktop. I have gigabit network between the computers, and the speed is good for ordinary ftp. sftp is really slow, down to 100 megabit. I have been trying to find any sollution to this transfer limitation, but no luck.
    I'm trying to have as few server processes as possible on my server box, and was hoping to get by with only ssh.
    Is there any way to increase the transfer rate in sftp?

    Edit: I just tested with sshfs, and got 14.5 mb/sec, transfering a 700mb ISO file. Non of the computers are working hard during this process, and non of the hard drives are either. Everything is looking completely normal, except for the speed.
    Last edited by msandoy; January 21st, 2011 at 10:26 PM.
    AMD Phenom II x6 2.8/3.3, 8 GB ram, GTX 550Ti 1024MB gfx, Xubuntu 13.10.

  9. #9
    Join Date
    Oct 2009
    Beans
    121

    Re: SFTP SSH File transfer slow

    Did anyone find a fix for this problem?

    Facing precisely the same issue on a wireless LAN, both boxes running Maverick, scp and sshfs giving transfer speeds of about 100Kb/s at best, and stalling completely after an hour or so of that.

  10. #10
    Join Date
    Jul 2010
    Location
    Amsterdam
    Beans
    11

    Re: SFTP SSH File transfer slow

    Im having the same problem. I set up a sftp server to stream my music and sync my docs while on a three month research trip. Now Im gone and everything is working but speeds are ridiculously slow. Im getting about 35kB/s down (clientside) and at most 100kB/s up (again, clientside). The bottleneck should be my ISP rates which are ca 0.8 MB/s up and ca 12MB down (serverside).

    Anyone found a fix for this? Otherwise I'll set up a ftp server and mount all the data read-only.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •