You're viewing a single post. I have much more to say! The main blog page is a good starting point.
Tuesday, August 22, 2006 ★ 09:44 ★ Categories Gnome, Linux
When I log into my laptop machine by entering my username and password into GDM, After logging in, I often find myself opening two of my SSH keys:
However, this causes me to enter my password at least three times! When I’m at home and my laptop tries to connect to my access point (long live network-manager) I also need to unlock my Gnome keyring, so that the total amount of passwords needed to get my machine running is four.
Luckily, there’s a solution for the ssh keys: libpam-ssh (simply apt-get install libpam-ssh on a Debian box). You need to add two lines (the ones containing pam-ssh) to /etc/pam.d/gdm, one after common-auth and one after common-session. First one:
@include common-auth @include pam-ssh-auth
Second:
@include common-session @include pam-ssh-session
Make sure you use the same password to unlock your ssh keys as you use to login to your machine. By default, ~/.ssh/id_dsa, ~/.ssh/id_rsa, and some other files are used. I simply symlinked my ~/.ssh/id-rsa-gnome file to ~/.ssh/id_dsa to load both keys, without fiddling with system-wide configuration files.
Now I only have to enter two passwords on login. Victory! Well, almost… does anyone have a solution for gnome-keyring (except for password-less keyrings, which are not option for laptops)?
Update: I’ve posted an update on this article.
Random photo from Turkey (May, 2005)
Wouter Bolsterlee, also known as uws, a postmodern geek living in the Netherlands. Read more about me…
Unless stated otherwise, all material on this site is available under a Creative Commons Share-Alike license.