How can I keep SSH keys passwords in KDE wallet?

Kubuntu 18.04 KDE Plasma 5.12.7

I'm trying to keep my SSH password in KDE wallet. I'm adding an SSH key by ssh-add command and specifying a password but the system asks me for a password each time after system rebooted. I've tried many ways but no results.

Is there a special way to configure keeping SSH passwords for KDE wallet?


Solution 1:

I have tried this tutorial in the past and got the work done

The first step is to install this package ksshaskpass. Find more about it on the github page. For example you can use the next command to install this package:

apt-get install ksshaskpass

The second step is to create a script as stated in the path mentioned. This will run the command when KDE starts. You can create the script with any text editor You are familiar.

The third step is to make the script You created in the second step, executable. Just run the command inside the folder, where the script You have created is, or provide the accurate path.

Then, the github author is recommending to stop the ssh agent when KDE is shutdown. Follow those recommendations as well. Again as step 2, You will need to use a text editor to create that script on the mentioned folder.

Finally if You want to remove the package and again input your pass every time, you can follow up the steps mentioned here.