How to use gnome-keyring or similar together with ssh-add

Hi,

I’m using key authentication for most of my ssh logins. Since passphrases are phrases and not words it’s cumbersome to type them frequently.

I’m on openSUSE 12.1 using XFCE as DE. However, when I had installed SUSE it was setup to use KDE 4 only later I switched to XFCE.

My problem: I use ssh-add to make the agent remember my keys, so that I don’t have to type the passphrase everytime I want to login somewhere. But, whenever I reboot the agents forgets about my keys. Hence, I need to call ssh-add everytime I reboot my computer. The keys are placed in ~/.ssh/. As I recall from when I was using Ubuntu, gnome-keyring should be able to act as a ssh-agent and remember the keys even after reboot. At least on Ubuntu I had to type my passphrase only once and never ever again.

My question: How to setup ssh-agent and gnome-keyring on XFCE so it will remember my keys after reboot? Or, is there another way to get such behaviour on XFCE?

Solved the problem myself.

Solution: Open the settings manager (Settings->Preferences->Settings Manager). There select Session and Startup. Open the Advanced tab. There check Launch GNOME services on startup. This will include the gnome-keyring, which is in charge of loading ssh-keys into the agent.

On 2012-03-20 00:06, gnawer wrote:
>
> Solved the problem myself.
>
> Solution: Open the settings manager (Settings->Preferences->Settings
> Manager). There select Session and Startup. Open the Advanced tab. There
> check Launch GNOME services on startup. This will include the
> gnome-keyring, which is in charge of loading ssh-keys into the agent.

Noted :slight_smile:


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)