Although the script on the keychain web page works... I've come up with a new script that has some advantages over the old one. New features: * Supports x11-ssh-askpass (need to emerge x11-ssh-askpass first) * Asks for a password for any new keys added since keychain was last run. * Runs even if no keys are availible (good for system wide use, like /etc/profile) The script otherwise acts the same. ------ snip ------ #!/bin/bash KEYCHAIN=/usr/bin/keychain KEYS="" # Search for SSH keys for file in $HOME/.ssh/id_*; do # Dont include public keys if [ `echo "$file" | grep -v "\.pub"` ]; then KEYS="$KEYS $file" fi done # Used when a term is not availible. # (when used from the console/xterm/etc it acts normally ) SSH_ASKPASS="/usr/bin/x11-ssh-askpass" $KEYCHAIN $KEYS . ~/.keychain/${HOSTNAME}-sh ------ snip ------
Whoah! This bug is old and moldy and most importantly, no longer applies!