SECURE GITHUB CREDENTIALS WITH KDE PLASMA KWALLET
Konsole + GitHub + KWallet
Hi and welcome to my blog!
KWallet is a KDE Plasma tool to store any credentials and secrets safely. It has an interface called KWallet Manager that allows one to manage credentials and secrets easily.
In this quick tutorial, I’ll show how to configure your KDE to store your GitHub credentials in KWallet. This guide was tested against openSUSE Tumbleweed but should work for most Linux distributions.
First, make sure to have
ksshaskpass is an ssh-add helper that uses
kpassworddialog to show a window where you should type your credentials.
Now, create a script file and mark it as executable:
Put the following content in the file:
Save and exit. Now make it executable.
Next time you log in, open Konsole and try to clone some of your private GitHub repositories.
If your wallet is already open, and you will see the
ksshaskpass dialogue asking for your username and then asking for your password. Ensure to mark “Remember password” to save your credentials safely in your wallet.