Question 8:
Configure your system with keychain, as described at the web site:
http://www.gentoo.org/proj/en/keychain.xml. Does this work for you?
Write a text file keychain-setup.txt which lists the steps you used to
set up keychain in 30 lines or less. Use your own words.
Nick's answer:
The instructions on the web site did not work for me. I found that I
needed to also modify ~/.bashrc as well, since although calling
keychain from ~/.bash_profile created the file
~/.keychain/${HOSTNAME}-sh and correctly started the agent and loaded
the keys, it did not always source the correct values into my shell,
so that by putting the line
[ -r ~/.keychain/${HOSTNAME}-sh ] && source ~/.keychain/${HOSTNAME}-sh
into my ~/.bashrc, I found that keychain always worked for me at home.
In the College, I found that it was necessary to set the hostname on
the machine that I was using, since otherwise all machines would have
the same hostname of localhost.localdomain, and my file
~/.keychain/localhost.localdomain-sh would be overwritten by new
keychain information from another computer if I did not change my
hostname. I changed the hostname by editing /etc/sysconfig/network
and setting a value for the variable HOSTNAME. I also added the same
hostname in /etc/hosts as the first name for the IP address 127.0.0.1
in addition to the names localhost and localhost.localdomain.
In ~/.bash_profile, I put the lines:
[ -x /usr/bin/keychain ] && keychain ~/.ssh/id_rsa
[ -r ~/.keychain/${HOSTNAME}-sh ] && source ~/.keychain/${HOSTNAME}-sh