Bug 489304

Summary: KSSHAskPass does not support git ssh signing
Product: [Applications] ksshaskpass Reporter: qwerty287
Component: generalAssignee: Jeremy Whiting <jpwhiting>
Status: REPORTED ---    
Severity: normal CC: kdedev, qwerty287
Priority: NOR    
Version First Reported In: 6.0.5   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description qwerty287 2024-06-27 12:00:59 UTC
SUMMARY
I'm trying to use a SSH key for signing git commits together with kwallet.

This is not possible and fails with this message: ksshaskpass: Unable to parse phrase "Enter passphrase: "

So this phrase is not supported. It looks like git just writes "Enter passphrase: " without a key name.

This means there's another problem: ksshaskpass doesn't know the key it should use and will therefore never use kwallet which would make it almost useless for me.

I wrote a simple "proxy" script that manipulates the message before starting ksshaskpass, but a proper fix would be better for me.

STEPS TO REPRODUCE
1. Set up git to use a ssh signing key
2. Set up ksshaskpass
3. Create a signed commit

OBSERVED RESULT
I always have to enter my key passphrase again (even though it's stored in kwallet).
Message: ksshaskpass: Unable to parse phrase "Enter passphrase: "

EXPECTED RESULT
It remembers my key and stores it in kwallet.

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.1
Kernel Version: 5.15.160-1-MANJARO (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Similar issues: https://bugs.kde.org/show_bug.cgi?id=485418 https://bugs.kde.org/show_bug.cgi?id=444862