This wiki was updated to MediaWiki 1.37. If you notice any issues, please report them to admin[at]opensuse.org

KWallet

Jump to: navigation, search

KWallet is the password manager for KDE. It is the counterpart of GNOME Keyring, but the wallets are incompatible.

Unlock on login

To unlock the password store automatically when you log in to avoid entering a password twice, the pam module for KWallet must be installed:

Gnome-software-icon.png
Via GNOME Software

Start Software. Search for package "pam_kwallet". Click the ideal package to open detail page. Click Install button.

Kde-discover-icon.png
Via KDE Discover

Start Discover. Search for package "pam_kwallet". Click the ideal package to open detail page. Click Install button.

Yast-icon.png
Via YaST

Start YaST --> Software Management. Search for package "pam_kwallet". Check the checkbox for installation (green check). Click Accept button to start installation.

Terminal-icon.png
Via Zypper
sudo zypper in pam_kwallet


In order for the automatic unlocking to work, the following conditions have to be met:

  • The name must be kdewallet.
  • The encryption method must be blowfish.
  • The wallet password must be the same as the login password.

Store SSH key passphrases

To avoid unlocking the key for every git action you can instead store the credentials in the wallet and unlock only once per boot.

Gnome-software-icon.png
Via GNOME Software

Start Software. Search for package "ksshaskpass5". Click the ideal package to open detail page. Click Install button.

Kde-discover-icon.png
Via KDE Discover

Start Discover. Search for package "ksshaskpass5". Click the ideal package to open detail page. Click Install button.

Yast-icon.png
Via YaST

Start YaST --> Software Management. Search for package "ksshaskpass5". Check the checkbox for installation (green check). Click Accept button to start installation.

Terminal-icon.png
Via Zypper
sudo zypper in ksshaskpass5


Create an autostart script file and mark it as executable:

~/.config/autostart-scripts/ssh-add.sh

#!/bin/sh
ssh-add -q < /dev/null
The above ssh-add.sh script will only add the default key ~/.ssh/id_rsa.

Create the following autostart script file and mark it executable:

~/.config/plasma-workspace/env/askpass.sh

#!/bin/sh
export SSH_ASKPASS='/usr/lib/ssh/ksshaskpass'

To add a new key and store the password with KWallet use the following command:

ssh-add

Weblinks