Bug 464365 - ksshaskpass can't connect to kwallet
Summary: ksshaskpass can't connect to kwallet
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kwallet
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 5.102.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Valentin Rusu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-16 05:17 UTC by Amr K.
Modified: 2023-02-03 20:05 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 Amr K. 2023-01-16 05:17:23 UTC
## SUMMARY

I followed [Arch wiki](https://wiki.archlinux.org/title/KDE_Wallet) method to store ssh private key passphrase in kwallet, but when I try to use ssh, I find it asking the password every time despite it being stored in kwallet, and it shows me this error:
```
$ ssh user@example.com
Warning: fallback to QtQuick software backend.
qt.svg: link #path2410 is undefined!
kf.config.core: Created a KConfigGroup on an inaccessible config location "kwalletrc" "Wallet"
kf.config.core: Created a KConfigGroup on an inaccessible config location "kwalletrc" "Wallet"
Couldn't start kwalletd:  QDBusError("org.freedesktop.DBus.Error.Disconnected", "Not connected to D-Bus server")
Couldn't start kwalletd:  QDBusError("org.freedesktop.DBus.Error.Disconnected", "Not connected to D-Bus server")
Couldn't start kwalletd:  QDBusError("org.freedesktop.DBus.Error.Disconnected", "Not connected to D-Bus server")
Couldn't start kwalletd:  QDBusError("org.freedesktop.DBus.Error.Disconnected", "Not connected to D-Bus server")
Couldn't start kwalletd:  QDBusError("org.freedesktop.DBus.Error.Disconnected", "Not connected to D-Bus server")
Couldn't start kwalletd:  QDBusError("org.freedesktop.DBus.Error.Disconnected", "Not connected to D-Bus server")
```

STEPS TO REPRODUCE
1. Follow the arch wiki link above.
2. Try to use ssh.
3. See `ksshaskpass` asking you for password, for the first time there a "Save password" checkbox.
4. Open a new terminal, use ssh and notice `ksshaskpass` asking for the private key passphrase again, and outputting the warnings above.

OBSERVED RESULT

ksshaskpass fails to connect to kwallet and outputs this error:
```
$ ssh user@example.com
Warning: fallback to QtQuick software backend.
qt.svg: link #path2410 is undefined!
kf.config.core: Created a KConfigGroup on an inaccessible config location "kwalletrc" "Wallet"
kf.config.core: Created a KConfigGroup on an inaccessible config location "kwalletrc" "Wallet"
Couldn't start kwalletd:  QDBusError("org.freedesktop.DBus.Error.Disconnected", "Not connected to D-Bus server")
Couldn't start kwalletd:  QDBusError("org.freedesktop.DBus.Error.Disconnected", "Not connected to D-Bus server")
Couldn't start kwalletd:  QDBusError("org.freedesktop.DBus.Error.Disconnected", "Not connected to D-Bus server")
Couldn't start kwalletd:  QDBusError("org.freedesktop.DBus.Error.Disconnected", "Not connected to D-Bus server")
Couldn't start kwalletd:  QDBusError("org.freedesktop.DBus.Error.Disconnected", "Not connected to D-Bus server")
Couldn't start kwalletd:  QDBusError("org.freedesktop.DBus.Error.Disconnected", "Not connected to D-Bus server")
```

EXPECTED RESULT
To get the ssh password from kwallet and pass it to the ssh command for me, so I can have passwordless login flow.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
This was working well before, but suddenly it doesn't work anymore!
Comment 1 Amr K. 2023-01-16 22:32:57 UTC
I can't even commit from VScode.
Comment 2 Amr K. 2023-01-23 03:47:40 UTC
Updated to beta and here are the version numbers:

KDE Plasma Version: 5.26.90
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8
Comment 3 Amr K. 2023-02-03 20:05:38 UTC
Just updated my Arch today and the issue was fixed.