Bug 612829 - ksshaskpass fails to use kwallet
Summary: ksshaskpass fails to use kwallet
Status: RESOLVED FIXED
Alias: None
Product: openSUSE 11.3
Classification: openSUSE
Component: KDE4 Applications (show other bugs)
Version: Factory
Hardware: x86-64 openSUSE 11.3
: P5 - None : Normal with 6 votes (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-09 11:35 UTC by Michael Schmuker
Modified: 2012-01-29 07:31 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Schmuker 2010-06-09 11:35:54 UTC
User-Agent:       Mozilla/5.0 (compatible; Konqueror/4.4; Linux) KHTML/4.4.3 (like Gecko) SUSE

ksshaskpass fails to store ssh key passwords in kwallet, although it asks for the wallet password.


Reproducible: Always

Steps to Reproduce:
1. Install ksshaskpass and set up your .xsession file to use it (see below)
2. Log in to KDE4
3. ksshaskpass asks for the wallet password, enter it
4. ksshaskpass asks for the ssh key password, enter it and check the "Remember password" box.

Actual Results:  
ksshaskpass keeps asking for the ssh key password upon each login. There is no discernible ssh-related entry in the wallet.


Expected Results:  
ksshaskpass should only ask for the ssh key password once and store it in the wallet. 


In order to use ksshaskpass you'll have to modify your .xsession file to prefer ksshaskpass over other alternatives:

[snip]
#
# Run ssh-agent only if ssh is configured and avaliable.
#
SSH_ASKPASS=""
if test "$usessh" = "yes" -a -d $HOME/.ssh ; then
    if test -x /usr/lib64/ssh/ksshaskpass ; then
        SSH_ASKPASS="/usr/lib64/ssh/ksshaskpass"
        export SSH_ASKPASS
    elif test -x /usr/lib/ssh/x11-ssh-askpass ; then
        SSH_ASKPASS="/usr/lib/ssh/x11-ssh-askpass"
        export SSH_ASKPASS
    elif test -x /usr/lib64/ssh/x11-ssh-askpass ; then
        SSH_ASKPASS="/usr/lib64/ssh/x11-ssh-askpass"
        export SSH_ASKPASS
    fi
fi
[snap]
Comment 1 Peter Tselios 2010-07-20 10:00:49 UTC
I can confirm the bug, but in my case, I have the error with x11-ssh-askpass! 
Specifically, I have not configured the xsession to use the ksshaskpass. It is the default x11-ssh-askpass. However, it executes the ksshaskpass.

And I have the following error message (in .xsession-errors file):
.xsession-errors:kwalletd(3640) KWalletD::setupDialog: Application ' "Ksshaskpass" ' using kwallet without parent window!
Comment 2 Christian Trippe 2012-01-28 19:36:37 UTC
openSUSE 11.3 is out of maintenance. Is this bug still valid with openSUSE
12.1?
Comment 3 Michael Schmuker 2012-01-28 22:21:04 UTC
Thanks for reminding me. Indeed, the bug got fixed in 12.1.
Comment 4 Christian Trippe 2012-01-29 07:31:28 UTC
Thanks, closing.