Add your ssh-key when logging on to Kde 4.x in OpenSUSE

I wanted my ssh-keys automatically loaded when loging on to my box.
In OpenSUSE you can easily fix this.

Make sure you got these packages installed:

joar@linux-xsuv:~> rpm -qa | grep ssh

Now edit /etc/pam.d/xdm and add the lines

>auth     sufficient
session  required

don’t delete anything there, just add those lines mentioned above.

This ensures ssh-agent is started while logging on and pam tries to unlock any of your ssh keys by using your login password as a passphrase.

Obviously this requires your ssh-key passphrase to equal your login password 🙂

I’ve tested this on OpenSUSE 11.1.

Source for this info at