You are not logged in.

#26 2024-08-01 11:08:21

troncoso
Member
Registered: 2008-08-28
Posts: 52

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

stanczew wrote:

Try also adding HostKeyAlgorithms:

-o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa

I needed to add the HostKeyAlgorithms to make it work for me. Thanks @stanczew

So this is the code that works for me:

#!/usr/bin/env bash

SSHFS_BIN="/usr/bin/sshfs"

if [[ "$1" =~ ^kdeconnect ]]; then
    "$SSHFS_BIN" "$@" -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa
else
    "$SSHFS_BIN" "$@"
fi

Last edited by troncoso (2024-08-01 11:12:38)

Offline

#27 2024-08-01 17:24:20

zpg443
Member
Registered: 2016-12-03
Posts: 292

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

Thank you tronkoso. Using this code in a new file /usr/local/bin/sshfs and making it executable resolved the issue perfectly.

Offline

#28 2024-08-01 18:54:53

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,273

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

Sadly the same file in the same location marked executable from #26 still doesn't work for me... including checking /usr/local/bin is in my path, and logging out and back in.


Mike C

Offline

#29 2024-08-01 19:31:33

Funny0facer
Member
From: Germany
Registered: 2022-12-03
Posts: 144

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

Can you confirm with

which sshfs

that the new file is found prior than the system file?

Offline

#30 2024-08-01 19:50:19

NoSavvy
Member
From: Dorchester, Dorset, UK
Registered: 2013-01-23
Posts: 117

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

Success. Using the script from Troncoso .Post 26.
But I had to edit the following file:-
/home/USER/.config/kdeconnect/PHONE code/config ---  and change kdeconnect_sftpEnabled=false to true

Offline

#31 2024-08-01 19:59:25

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,273

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

Funny0facer wrote:

Can you confirm with

which sshfs

that the new file is found prior than the system file?

You are right - it shows the original

$ which sshfs
/usr/bin/sshfs

So where is the path set that will make it look at /usr/local/bin/ to get at sshfs?

Sorry that was not correct - I had removed the file and reinstated it - but when I reinstated it I forgot to make it executable again - once that is done then yes it does show the correct file:

$ which sshfs
/usr/local/bin/sshfs

So it should execute it - but doesn't solve the issue with kdeconnect.

Last edited by mcloaked (2024-08-01 20:03:21)


Mike C

Offline

#32 2024-08-01 20:07:31

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,273

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

NoSavvy wrote:

Success. Using the script from Troncoso .Post 26.
But I had to edit the following file:-
/home/USER/.config/kdeconnect/PHONE code/config ---  and change kdeconnect_sftpEnabled=false to true

In that directory I don't have that file:

$ ls /home/mike/.config/kdeconnect/dxxxxxxxxxxxxxxxxxxxxxxxxxxx/
kdeconnect_clipboard  kdeconnect_runcommand

and the config file in the parent dir only has:

$ cat /home/mike/.config/kdeconnect/config 
[General]
name=MYLAPTOPNAME

Mike C

Offline

#33 2024-08-01 20:20:12

NoSavvy
Member
From: Dorchester, Dorset, UK
Registered: 2013-01-23
Posts: 117

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

What if you try "kdeconnect-cli -l" to give you the phone code/name and then search for it. Just in case it's somewhere else.

Offline

#34 2024-08-01 20:27:19

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,273

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

NoSavvy wrote:

What if you try "kdeconnect-cli -l" to give you the phone code/name and then search for it. Just in case it's somewhere else.

It just confirms the already existing phone-code.... so nothing new.


Mike C

Offline

#35 2024-08-01 20:51:08

Funny0facer
Member
From: Germany
Registered: 2022-12-03
Posts: 144

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

Maybe you try to create that file by hand.

here is mine: ~/.config/kdeconnect/7d525dca4dfc8e26/config

[Plugins]
kdeconnect_batteryEnabled=true
kdeconnect_bigscreenEnabled=false
kdeconnect_clipboardEnabled=true
kdeconnect_connectivity_reportEnabled=false
kdeconnect_contactsEnabled=false
kdeconnect_mprisremoteEnabled=false
kdeconnect_sftpEnabled=true
kdeconnect_virtualmonitorEnabled=false

Offline

#36 2024-08-01 21:10:24

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,273

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

Funny0facer wrote:

Maybe you try to create that file by hand.

here is mine: ~/.config/kdeconnect/7d525dca4dfc8e26/config

[Plugins]
kdeconnect_batteryEnabled=true
kdeconnect_bigscreenEnabled=false
kdeconnect_clipboardEnabled=true
kdeconnect_connectivity_reportEnabled=false
kdeconnect_contactsEnabled=false
kdeconnect_mprisremoteEnabled=false
kdeconnect_sftpEnabled=true
kdeconnect_virtualmonitorEnabled=false

Creating the file manually makes no difference for me. It still doesn't see the filesystem on the phone - the other functions are fine.


Mike C

Offline

#37 2024-08-01 21:40:04

zpg443
Member
Registered: 2016-12-03
Posts: 292

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

I had to re-establish the shared folder permissions on my kdeconnect phone app.

Offline

#38 2024-08-02 07:43:05

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,273

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

I wondered whether for anyone where the method from #26 worked, that the keys were from a previously earlier pairing where rsa keys were stored and therefore allowed? In my system I unpaired when the problems occurred and the recent paring may use non-rsa keys?  I guess could check the keys if I know the path where the key files are?


Mike C

Offline

#39 2024-08-02 08:17:28

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,273

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

I have now got my system working - after establishing the wrapper file in /usr/local/bin/sshfs I unpaired the phone, and then paired it from scratch. The filesystem on the phone is indeed now visible on the laptop.  So presumably with the wrapper permitting the rsa keys to be used, then pairing with the wrapper as the sshfs command, establishes the connection with the old (normally now obsolete) key in use, and it works as expected.   

This is surely a temporary workaround, since the rsa keys should instead be updated more secure keys. So the real fix would be to have kdeconnect patched upstream to use more secure key types.

Edit: I have added a comment to the upstream bug report at https://bugs.kde.org/show_bug.cgi?id=443155#c64 because the proper solution is for the upstream package to be fixed with a working commit that allows kdeconnect to work properly with current versions of sshfs/openssh

Last edited by mcloaked (2024-08-02 08:33:17)


Mike C

Offline

#40 2024-08-02 08:42:11

Funny0facer
Member
From: Germany
Registered: 2022-12-03
Posts: 144

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

please remember to change the initial title post to something like [SOLVED] or [WORKAROUND] so other people find a potential solution easier.

Offline

#41 2024-08-02 18:12:20

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,273

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

I have added a comment upstream at this bug too: https://bugs.kde.org/show_bug.cgi?id=477673#c23


Mike C

Offline

#42 2024-08-15 08:06:31

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,273

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

For me the problem does appear resolved now with v1.32.0 of the Android app


Mike C

Offline

#43 2024-09-10 15:40:26

zpg443
Member
Registered: 2016-12-03
Posts: 292

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

For me, the problem re-appears with v1.32.2 of the Android app. My workaround is to manually move the file I need from my phone using the app, transferring it to the Downloads folder. I can no longer browse phone files using Dolphin, even though the phone appears as a "connected" device.

Offline

#44 2024-09-13 16:39:32

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,273

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

Yes it is broken again for me also.  Some directories are browsable from the arch system, but others make dolphin hang - I can no longer browse the DCIM/Camera/ directory on the phobe, for example, although I can browse the Music/ directory.


Mike C

Offline

Board footer

Powered by FluxBB