staylor@Star staylor $ cat .bash_profile # /etc/skel/.bash_profile: # $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/skel/.bash_profile,v 1.10 2002/11/18 19:39:22 azarah Exp $ keychain --quiet ~/.ssh/id_rsa ~/.ssh/id_dsa . ~/.keychain/${HOSTNAME}-sh staylor@Star staylor $ ll .keychain/ total 8 -rw------- 1 staylor users 80 Jan 30 13:10 Star.BerthoudWireless.net-csh -rw------- 1 staylor users 110 Jan 30 13:10 Star.BerthoudWireless.net-sh staylor@Star staylor $ echo ${HOSTNAME} Star staylor@Star staylor $ uname -n Star.BerthoudWireless.net
Bash uses FQDN for ${HOSTNAME}, so this is invalid. Best I can guess is that your shell was started before hostname was set. If you're using dhcpcd and telling it to set your hostname.. don't.