Bug 485418 - ksshaskpass can not parse "Enter passphrase" messages from ssh-keygen
Summary: ksshaskpass can not parse "Enter passphrase" messages from ssh-keygen
Status: REPORTED
Alias: None
Product: ksshaskpass
Classification: Applications
Component: general (show other bugs)
Version: 6.0.3
Platform: Neon Linux
: NOR minor
Target Milestone: ---
Assignee: Jeremy Whiting
URL:
Keywords: junior-jobs
Depends on:
Blocks:
 
Reported: 2024-04-12 08:23 UTC by Malte S. Stretz
Modified: 2024-07-27 15:39 UTC (History)
2 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 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