Bug 356632 - ksshaskpass showing password field while asking for username
Summary: ksshaskpass showing password field while asking for username
Status: RESOLVED NOT A BUG
Alias: None
Product: ksshaskpass
Classification: Applications
Component: general (show other bugs)
Version: 5.5.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Jeremy Whiting
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-13 22:24 UTC by Martin Kostolný
Modified: 2022-07-03 19:55 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
ksshaskpass username query dialog with password field (15.30 KB, image/png)
2015-12-13 22:26 UTC, Martin Kostolný
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Kostolný 2015-12-13 22:24:56 UTC
When ksshaskpass is invoked for the first time for given hostname it asks for username but shows a password field and "Remember password" checkbox. After inserting some text clicking OK it asks for password for previously inserted username.

This is very misleading. I've inserted password in the first dialog, checked "Remember password" and then was surprised by the second password dialog and on top of that was unable to change username for given hostname due to checked "Remember password" checkbox (another issue fixed by going to KWalletManager 15.08 and remove given username).

Reproducible: Always

Steps to Reproduce:
1. Clean up your github.com ksshaskpass usernames and password in kwalletmanager
2. Git push in some project hosted on github

Actual Results:  
Username query dialog opens with password field

Expected Results:  
Username query dialog opens but should contain regular text field for username and maybe also password field and remember password checkbox.

I have Plasma 5.5.0, KF 5.16, KDE Applications 15.08.03, Qt 5.5.1
Comment 1 Martin Kostolný 2015-12-13 22:26:42 UTC
Created attachment 96050 [details]
ksshaskpass username query dialog with password field
Comment 2 Carlos 2016-05-21 18:29:30 UTC
The same happens to me. I'm on plasma 5.6.3, on openSUSE Tumbleweed.
Comment 3 Gerry Agbobada 2017-10-02 15:54:11 UTC
This is still happening with ksshaskpass-5.10.5-1.fc27.x86_64
Comment 4 Christoph Feck 2019-03-31 08:21:46 UTC
It is not possible. The ssh application calls the password UI helper ksshaskpass twice, once for the username, once for the password.

You would need to use a GUI ssh application to be able to fix it.
Comment 5 Mark Duncan 2019-10-17 17:07:13 UTC
Christoph, why would this not be possible to fix?  Certainly you must agree that prompting for a password and using a password input field is not the correct way to handle a request for a username.  Why can't the input type be changed based on if a username or password is being prompted for?
Comment 6 Frederik Schwarzer 2022-07-03 19:55:43 UTC
The windows says "Password", so I enter my password ... then the next window shows my password in plain text.

For me this is a bug.