Bug 491547 - sftp transfer speeds are atrociously slow, but on Filezilla super quick
Summary: sftp transfer speeds are atrociously slow, but on Filezilla super quick
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 24.05.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-10 19:00 UTC by Andrea Ippolito
Modified: 2024-08-10 19:00 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrea Ippolito 2024-08-10 19:00:06 UTC
Hi, I don't know if Dolphin is the right project to report this, or if this is rather a framework/KIO issue, please move to the proper component if I misreported it (and sorry!)

I needed to copy around 100 files to my Android phone today.

I followed this process to setup an ssh server on the phone, found here: https://www.reddit.com/r/Tailscale/comments/10v3rz1/comment/j7ga0ul/


   Install Termux from Github (or F-Droid) on the phone you want to SSH into. Don't use the Play Store version, it doesn't work
    run pkg update and pkg upgrade
    run passwd and set up a password
    run pkg install openssh
# I noticed this step isn't needed since keys will be generated upon openssh installation (step above)
    run ssh-keygen -A 
    run termux-setup-storage - This will make the app ask for storage permission
# I learnt that you also need to install the sftp server package as per https://wiki.termux.com/wiki/Remote_Access#Using_the_SFTP
pkg install openssh-sftp-server
    run sshd

You now have an SSH server running on your device

Now check the connection is successful by doing:

ssh user@<phonesIPaddress> -p 8022 and enter the password chosen on the phone in termux at the passwd step

If auth is ok, enter pwd:

You should be at /data/data/com.termux/files/home/

Now cd into a dir you would normally copy files into (on your phone), e.g. cd storage/downloads

Enter pwd again and use the full path (/data/data/com.termux/files/home/storage/downloads) for Dolphin.

Now open Dolphin and in the URI bar enter:

sftp://user@10.230.230.104:8022/data/data/com.termux/files/home/storage/downloads/

(notice the "user" here is irrelevant in my experience, could be any value or maybe even omitted)

Enter the passwd if prompted

Now start transferring a bunch of MP3s, like the equivalent of two or three albums.

File transfer will grind very quickly.

On your phone you can check current sshd processes by entering (in termux) ps aux | grep sshd. When you close Dolphin/cancel the file transfer, you will see that this process count goes back down to 1. Otherwise it's like 5 or 6.

Now try to repeat this same experiment, but using Filezilla instead, and configuring the SFTP connection there. It FLIES.

It took Dolphin more than 10 minutes to transfer <50MB, Filezilla took less than that to transfer 5 GB (!!!).

There's clearly something wrong somewhere in the way Dolphin handles this ssh connection.

Thanks


I have a Google Pixel 8 Pro with original ROM, not that it matters IMO
Comment 1 Andrea Ippolito 2024-08-10 19:00:47 UTC
P.S. at the end on the phone/termux you may wanna enter "pkill sshd" followed by "exit"