keychain - http://www.gentoo.org/projects/keychain.html is a nice implementation of the multi shell ssh-agent concept described for example in the SSH-FAQ or in http://koeln.ccc.de/~drt/wiki.cgi?AdvancedSSH This patch fixes some stilistic interferences between keychain and me. 1) the scratch files for the enviroment are placed in ~/.ssh/ instead of the users homedir. That's what the ~/.ssh directory is for. 2) there will be no color output at all 3) keychain is mutch less chatty --drt@c0re.jp - http://c0re.jp/ --- keychain-orig Fri Sep 21 22:24:27 2001 +++ keychain Fri Sep 28 22:20:54 2001 @@ -15,8 +15,8 @@ # .ssh-agent file with csh-compatible syntax. hostname=`uname -n` -pidf=${HOME}/.ssh-agent-${hostname} -cshpidf=${HOME}/.ssh-agent-csh-${hostname} +pidf=${HOME}/.ssh/.ssh-agent-${hostname} +cshpidf=${HOME}/.ssh/.ssh-agent-csh-${hostname} for x in ${@} do @@ -38,17 +38,17 @@ fi # color variables won't be defined if --nocolor is present -if [ -z "`echo $* | grep '\-\-nocolor'`" ] -then - BLUE="\033[34;01m" - GREEN="\033[32;01m" - OFF="\033[0m" /usr/share/libtool/- CYAN="\033[01m" -fi - -echo -echo $E "${GREEN}KeyChain ${version}; ${BLUE}http://www.gentoo.org/projects/keychain${OFF}" -echo $E " Copyright 2001 Gentoo Technologies, Inc.; Distributed under the GPL" +#if [ -z "`echo $* | grep '\-\-nocolor'`" ] +#then +# BLUE="\033[34;01m" +# GREEN="\033[32;01m" +# OFF="\033[0m" +# CYAN="\033[01m" +#fi + +#echo +#echo $E "${GREEN}KeyChain ${version}; ${BLUE}http://www.gentoo.org/projects/keychain${OFF}" +#echo $E " Copyright 2001 Gentoo Technologies, Inc.; Distributed under the GPL" #This should work under Linux, BSD, others psopts="FAIL" @@ -94,7 +94,7 @@ Keychain is an OpenSSH key manager, typically run from ~/.bash_profile. When run, it will make sure ssh-agent is running; if not, it will start ssh-agent. - It will redirect ssh-agent's output to ~/.ssh-agent-[hostname], so that cron + It will redirect ssh-agent's output to ~/.ssh/ssh-agent-[hostname], so that cron jobs that need to use ssh-agent keys can simply source this file and make the necessary passwordless ssh connections. In addition, when keychain runs, it will check with ssh-agent and make sure that the ssh RSA/DSA keys that you @@ -107,18 +107,18 @@ EOHELP echo $E " ${CYAN}keychain ~/.ssh/id_rsa ~/.ssh/id_dsa" -echo $E " . ~/.ssh-agent-\${HOSTNAME}${OFF}" +echo $E " . ~/.ssh/ssh-agent-\${HOSTNAME}${OFF}" echo -echo $E " # alt. syntax: . ~/.ssh-agent-\`uname -h\`" +echo $E " # alt. syntax: . ~/.ssh/ssh-agent-\`uname -h\`" echo $E " # note the use of back-quotes (\`) rather than single-quotes (') above." -echo $E " # We now append the hostname (\`uname -n\`) to the .ssh-agent filename" +echo $E " # We now append the hostname (\`uname -n\`) to the .ssh/ssh-agent filename" echo $E " # for NFS-compatibility." echo echo " You can make keychain work with your csh-compatible shell by adding the" echo " following to your .cshrc:" echo echo $E " ${CYAN}keychain ~/.ssh/id_rsa ~/.ssh/id_dsa" -echo $E " source ~/.ssh-agent-csh-\${HOSTNAME}${OFF}" +echo $E " source ~/.ssh/ssh-agent-csh-\${HOSTNAME}${OFF}" echo cat <