Bug 491744

Summary: ksshaskpass: Unable to parse phrase
Product: [Applications] ksshaskpass Reporter: Luofan Chen <clfbbn>
Component: generalAssignee: Jeremy Whiting <jpwhiting>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Luofan Chen 2024-08-15 08:45:17 UTC
SUMMARY
ssh to some hosts with password, the password is not saved, and ksshaskpass throws a warning about it: "Unable to parse phrase"

STEPS TO REPRODUCE
1. ssh to some hosts with password

OBSERVED RESULT
The password is not saved, and ksshaskpass shows warning: `ksshaskpass: Unable to parse phrase "(chenlf@192.168.1.10) Password: "`

EXPECTED RESULT
ksshaskpass correctly parses the prompt string

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
Seems like a new regular expression should be added after https://github.com/KDE/ksshaskpass/blob/master/src/main.cpp#L184