error: unable to read askpass response from '/usr/bin/ksshaskpass'

This is a wiki page. Be bold and improve it!

If you have any questions about the content on this page, don't hesitate to open a new ticket and we'll do our best to assist you.

Table of Contents

Error

When trying to submit something from the console which requires to input a password, we get the following error:

error: unable to read askpass response from '/usr/bin/ksshaskpass'

This may happen for example when trying to push some code into a git repository online.

The problem can be compounded by a current usability bug in ksshaskpass: when we mistakenly entered the password instead of the user name, ksshaskpass does not allow to change the username but keeps using the password as user name.

Solution

Install and use kwalletmanager which is a GUI application to manage passwords.
The gentoo package is kde-apps/kwalletmanager.
Launch the application kwalletmanager5 and check the tab for ksshaskpass.
You can delete the erroneous entry there.

Upstream

Bug 343562
Cannot remove a wrong user/password after it was stored
https://bugs.kde.org/show_bug.cgi?id=343562