Thursday, July 10, 2008

keychain: command not found

Bash reported
keychain: command not found
every time we logged on to krishna via ssh. Googled, found that it was a bug in Mandriva, fixed it by editing .bash_profile by adding an if [ -x /usr/bin/keychain ] like
 if [ ! -d $HOME/.keychain ]; then
if [ -x /usr/bin/keychain ] ; then
keychain
fi
fi
The [space] before the -x is important....

2 comments:

  1. I'm having similar difficulty, trying to ssh to a PCLinuxOS box from a PCLinuxOS laptop (PCLinuxOS being based on Mandriva).
    I tried editing bash_profile as you suggest, but I still get the error.
    Should I restart my Xsession or something for the edit to be effective?

    ReplyDelete
  2. huh...looks like I don't have "keychain" in /usr/bin...or anywhere...
    doh

    looks like I need to apt-get something...

    ReplyDelete