Bug 485418

Summary: ksshaskpass can not parse "Enter passphrase" messages from ssh-keygen
Product: [Applications] ksshaskpass Reporter: Malte S. Stretz <mss>
Component: generalAssignee: Jeremy Whiting <jpwhiting>
Status: REPORTED ---    
Severity: minor CC: gerardo.gomez, qwerty287
Priority: NOR Keywords: junior-jobs
Version First Reported In: 6.0.3   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=444862
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Malte S. Stretz 2024-04-12 08:23:26 UTC
SUMMARY
This is like bug 444862 but for two different pattern. When a new key is generated via ssh-keygen ksshaspass complains about not being able to parse these prompts:

ksshaskpass: Unable to parse phrase "Enter passphrase (empty for no passphrase): "
ksshaskpass: Unable to parse phrase "Enter same passphrase again: "

STEPS TO REPRODUCE
1. export SSH_ASKPASS_REQUIRE=prefer
2. export SSH_ASKPASS=/usr/bin/ksshaskpass
3. ssh-keygen -f /tmp/id_dummy

OBSERVED RESULT
No error message

EXPECTED RESULT
It actually works so this is more cosmetics. The error message should not appear though.

SOFTWARE/OS VERSIONS
Operating System: KDE neon 6.0
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.5.0-26-generic (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-6300U CPU @ 2.40GHz
Memory: 19,4 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 520
Manufacturer: LENOVO
Product Name: 20F9CTO1WW
System Version: ThinkPad T460s

ADDITIONAL INFORMATION
Code can be found at https://github.com/KDE/ksshaskpass/blob/v6.0.3/src/main.cpp#L36
Comment 1 Gerardo Gomez 2024-07-27 15:39:25 UTC
Hi,
This MR should fix this bug/issue: https://invent.kde.org/plasma/ksshaskpass/-/merge_requests/24