Fishpond 604x90

Wednesday, April 26, 2006

pam_ssh and kdm

For users of ssh, we can use an ssh-agent to manage our keys and connect to other ssh servers without typing password explicitly. However, you will need to type the password twice each time you login to the system, then start an agent and use ssh-add to get the passphrase. This is inconvenient if your password for login and the key file are the same. We can change this behavior by editing pam files. Here is how I made it with a kdm login manager under FreeBSD.

Edit /etc/pam.d/kde, add lines :

auth sufficient pam_ssh.so no_warn use_first_pass
session optional pam_ssh.so
below

auth required pam_unix.so no_warn try_first_pass

Note that the order of the two auth line is important. For more details, read the manual pam_ssh.

1 comment:

Anonymous said...

Howdy,

I mostly visits this website[url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips].[/url]zengnan.blogspot.com really contains lot of useful information. Let me tell you one thing guys, some time we really forget to pay attention towards our health. Are you really serious about your weight?. Recent Scientific Research shows that about 70% of all U.S. grownups are either obese or weighty[url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips].[/url] So if you're one of these people, you're not alone. Infact many among us need to lose 10 to 20 lbs once in a while to get sexy and perfect six pack abs. Now next question is how you can achive quick weight loss? [url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips]Quick weight loss[/url] is really not as tough as you think. Some improvement in of daily activity can help us in losing weight quickly.

About me: I am blogger of [url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips]Quick weight loss tips[/url]. I am also mentor who can help you lose weight quickly. If you do not want to go under difficult training program than you may also try [url=http://www.weightrapidloss.com/acai-berry-for-quick-weight-loss]Acai Berry[/url] or [url=http://www.weightrapidloss.com/colon-cleanse-for-weight-loss]Colon Cleansing[/url] for fast weight loss.