What I want to do:
I often have to transfer files from my PC to my smartphone. With my old smartphone, I used SSH scp to quickly send files without the need to plug in a USB cable.
With my new /e/ Fairphone 3, I figured out the following way:
connect from my PC via ssh -p 8022 <SMARTPHONE_IP_ADDRESS>
The problem:
This seems to work in some cases. But in about 60% of all connection attempts, the connection fails with “Connection timed out” shown on my PC.
Even if I repeat step 4 in 10 different PC Linux terminals within 5 Minutes, I get some succeeding connections and many “timed outs”.
In case of “connection time out” I can’t see any activity in SSH daemon’s log, started with sshd -d.
Testing different device:
I tried the same setup with a friends “Google Android smartphone” (same Linux PC, same WLAN, same Termux app): SSH-Connection works 100%
So I guess it is a problem with my “/e/ Fairphone 3”.
What could be wrong, but is not:
I am sitting direct next to the WLAN box, so I have 100% WiFi signal strength. My smartphone battery is at 60% and I enabled “unrestricted data usage” for the Termux app.
I think, the WiFi connection is ok: Transferring 1.3 GByte from my PC to my eFP3 took 113 seconds which is about 11 MByte/s.
Continuosly pinging is a good idea, but did not help.
I also tried switching Settings > Battery > Battery saver and performance > Performance profile from “Balanced” to “Performance”. But this did not help either.