Load SSH keys via Kwallet
Automatically add SSH keys after login
This quick tip was tested on openSUSE Tumbleweed. However, it will probably work for other Linux distributions running KDE Plasma.
Using Zypper, install
.desktop file that will be automatically parsed at KDE Plasma start-up. Add all the needed keys using
ssh-add -q. The “q” here stands for quiet.
Exec command, I’ve used the
/home/user_name/ path because
$HOME did not work as expected.
Create another script in
~/.config/plasma-workspace/env/ to set the environment variable
SSH_ASKPASS to use ksshaskpass.
Now reboot the machine. In the next login, a dialogue window asking for your SSH key password will appear for each added key.
Ensure to mark the option “Remember password”.