This quick tip was tested on openSUSE Tumbleweed. However, it will probably work for other Linux distributions running KDE Plasma.
ksshaskpass5 via Zypper.
sudo zypper in --details ksshaskpass5
Create the script that will run
Add all the needed keys using
ssh-add -q. The “q” here stands for quiet.
Give execution permission to the script.
chmod +x ~/bin/startup-scripts/ssh-add.sh
.desktop file that will be automatically parsed at KDE Plasma start-up.
Create another script in
~/.config/plasma-workspace/env/ to set the environment variable
SSH_ASKPASS to use ksshaskpass.
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”.