KWallet
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:
Start Software. Search for package "pam_kwallet". Click the ideal package to open detail page. Click Install button.
Start Discover. Search for package "pam_kwallet". Click the ideal package to open detail page. Click Install button.
Start YaST --> Software Management. Search for package "pam_kwallet". Check the checkbox for installation (green check). Click Accept button to start installation.
In order for the automatic unlocking to work, the following conditions have to be met:
- the wallet must not have been previously initiated.
- 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.
Start Software. Search for package "ksshaskpass5". Click the ideal package to open detail page. Click Install button.
Start Discover. Search for package "ksshaskpass5". Click the ideal package to open detail page. Click Install button.
Start YaST --> Software Management. Search for package "ksshaskpass5". Check the checkbox for installation (green check). Click Accept button to start installation.
Create an autostart script file and mark it as executable:
~/.config/autostart-scripts/ssh-add.sh
#!/bin/sh
ssh-add -q < /dev/null
Create the following autostart script file and mark it executable:
~/.config/plasma-workspace/env/askpass.sh
#!/bin/sh
export SSH_ASKPASS='/usr/libexec/ssh/ksshaskpass'
To add a new key and store the password with KWallet use the following command:
ssh-add