ssh-agent

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
pam_ssh-1.96-26.112
openssh-5.1p1-40.15
openssh-askpass-5.1p1-40.15

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

>auth     sufficient     pam_ssh.so
session  required       pam_ssh.so

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 opensuse.org