Bug 400935 - kdeconnect/sftp Can't browse files from Android
Summary: kdeconnect/sftp Can't browse files from Android
Status: RESOLVED FIXED
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (show other bugs)
Version: 1.3.1
Platform: Ubuntu Linux
: NOR major
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-11 15:12 UTC by Christoph Pospiech
Modified: 2018-11-26 00:37 UTC (History)
4 users (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 Christoph Pospiech 2018-11-11 15:12:09 UTC
SUMMARY
kdeconnect functionality OK, only browsing of files on Android fails.


STEPS TO REPRODUCE
1. Request pairing on Android and accept on Linux KDE
2. Open kdeconnect icon and click on file symbol top right
3. Dolphin opens but file symbols point to non-existent paths.  

OBSERVED RESULT
Dolphin opens but file symbols point to non-existent paths.

EXPECTED RESULT
Dolphin should display Android files.

SOFTWARE/OS VERSIONS
Windows: 
MacOS: 
Linux/KDE Plasma: Kubuntu 18.04.1 LTS (Bionic Beaver)
(available in About System)
KDE Plasma Version: 5.12.6
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

$HOME/.xsession-errors shows the following messages.
kdeconnect.plugin.sftp: Starting process:  "sshfs kdeconnect@192.168.1.71:/ /run/user/1000/22bf47c85fbd71f8 -p 1745 -s -f -F /dev/null -o IdentityFile=/home/cp/.config/kdeconnect/privateKey.pem -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o HostKeyAlgorithms=ssh-dss -o uid=1000 -o gid=1000 -o reconnect -o ServerAliveInterval=30 -o password_stdin"
QDBusAbstractAdaptor: Cannot relay signal SftpPlugin::packetReceived(NetworkPacket): Unregistered input type in parameter list: NetworkPacket
kdeconnect.plugin.sftp: Process started
kdeconnect.plugin.sftp: "motorola" "Remote filesystem mounted at /run/user/1000/22bf47c85fbd71f8"
kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/qt5/plugins/kio_kdeconnect.so' from launcher.
kdeinit5: preparing to launch '/usr/lib/x86_64-linux-gnu/qt5/plugins/kio_kdeconnect.so'
kdeconnect.kio: Setting host:  "22bf47c85fbd71f8"
kdeconnect.kio: Stat:  QUrl("kdeconnect://22bf47c85fbd71f8")
kdeinit5: Got EXT_EXEC '/usr/bin/dolphin' from launcher.
kdeinit5: preparing to launch '/usr/bin/dolphin'
kdeconnect.plugin.sftp: stdout: "Unable to negotiate with 192.168.1.71 port 1745: no matching host key type found. Their offer: ssh-rsa\r\nread: Connection reset by peer\n"
QXcbConnection: XCB error: 3 (BadWindow), sequence: 10739, resource id: 111149056, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 10743, resource id: 111149057, major code: 18 (ChangeProperty), minor code: 0
kdeconnect.plugin.sftp: Process finished (exit code:  1 )
kdeconnect.plugin.sftp: "motorola" Remote filesystem unmounted
kdeconnect.plugin.sftp: Unmount KProcess(0x559df009c890)

This error message is different from Bug 38022 and 364571.
Is there a key mismatch?

USER QUESTION
Why option -o HostKeyAlgorithms=ssh-dss in sftp command? See https://www.gentoo.org/support/news-items/2015-08-13-openssh-weak-keys.html and https://www.openssh.com/legacy.html. 

How to disable this option?
Comment 1 vector 2018-11-13 08:34:30 UTC
But we have was same problem with 1.3.1 the kdeconnect 1.3.3
works for me on blackPanther OS v18.1
Comment 2 SP 2018-11-13 20:17:13 UTC
This may be related to the bug I have submitted: Bug 400986 
The problem has only occurred in the last day or so and is possibly related to an update that has changed permissions or program behaviour.
Would be grateful for a remedy.
Comment 3 Tom Chiverton 2018-11-17 18:30:33 UTC
These errors are almost always because the Android app requires certain versions of the kdeconnect package.
If they are not in sync, file browsing fails but everything else works.

Sadly, I can't find a list of 
* past Android versions to download
* what Android version requires what KDE Connect version

As of now, Android 1.10 works with Kubuntu Backports for Kubuntu 18.04, but not normal Kubuntu 18.04.
Comment 4 SP 2018-11-17 20:28:32 UTC
@Tom Chiverton - Yes, it is always annoying.  As you noted, installing Kdeconnect 1.3.3 either from binary or from source resolves the problem.  When I attempted to do so on my Fedora system using the GUI installer, Apper - it failed due to dependencies - but worked from the command line.  I had to install around four packages.  Perhaps the source file would be more straight forward.