It's really handy to have all my SSH authentication be passwordless, but in a secure way. In openSUSE, the ssh-agent is started for you automatically, but you still need to add your identities manually (and enter passphrases when you do this). That's a bit of a pain to do every time you login.

Here are some simple scripts and steps I use to set up my KDE session so that it will automatically load my SSH identities when I login.

There are three parts for this:

Set up KDE's KWallet with a master password. KWallet will be remembering the passphrases for my SSH keys (as well as other passwords within KDE such as those for web sites visited with Konqueror and Chrome, or email passwords, SQL Connections and so on). This makes it so that I only have to remember the KWallet master password to open my wallet at login, not all the different passphrases (you should use a different passphrase for each SSH key pair)

Start ssh-add at login, using the KDE password tool ksshaskpass to ask for the passphrases (and that will save them to my wallet)

Automatically load all my SSH identities (I have several, for work and for different code hosting systems on the net: bitbucket and github)

Save this script to a location you keep your shell scripts, chmod +x it so it is executable. Then, it needs to be run automatically at KDE Startup. For this, you add it to the KDE Autostarts.

Launch the "Autostart" KDE Control Module (Alt-F2, Autostart)

Add a new Script File linking to where you saved the above script

From now on, every time you start KDE, it'll run ssh-add and set it's password tool to be the KDE graphical password tool, ksshaskpass. That in turn uses KWallet for password storage, so if you need a password that's in the wallet, it'll retrieve it from there.

This one will pick out all the private keys from my SSH directory ~/.ssh, adding them to my SSH agent's keychain.

Add this to Autostart as another Script File. I've saved it as ~/.ssh/addkeys.

You need to chmod +x addkeys and run it once to add all the keys and enter their passphrases (so that they get added to your Wallet).

Once the script has been run, whenever I need to login to an SSH session, if the identity is already in the agent's chain, I can get in without needing to type the passphrase.

So now that my wallet is set up, the two scripts are in place at Autostart, and I've run the addkeys script at least once to add the passphrasses to my wallet, I never need to enter passwords or passphrases when SSHing again (unless keys change or it's a new host).