Keychain and ssh-agent works fine.

This commit is contained in:
Jeremy Gardais 2015-09-03 22:13:46 +02:00
parent 3a51ca680d
commit d34974413a
1 changed files with 12 additions and 6 deletions

16
zlogin
View File

@ -93,15 +93,21 @@ fi
# Launch Keychain for ssh # Launch Keychain for ssh
if [ -f $HOME/.keychain/$HOST-sh ]; then #if [ -f $HOME/.keychain/$HOST-sh ]; then
. $HOME/.keychain/$HOST-sh #. $HOME/.keychain/$HOST-sh
else #else
if [ -f $HOME/.ssh/id_rsa ]; then #if [ -f $HOME/.ssh/id_rsa ]; then
#keychain --agents ssh id_rsa
#. $HOME/.keychain/$HOST-sh
#fi
#fi
if [ -f $HOME/.ssh/id_rsa ]; then
keychain --agents ssh id_rsa keychain --agents ssh id_rsa
. $HOME/.keychain/$HOST-sh . $HOME/.keychain/$HOST-sh
fi
fi fi
# Launch Keychain for GPG # Launch Keychain for GPG
#[ -f $HOME/.keychain/$HOST-sh-gpg ] && \ #[ -f $HOME/.keychain/$HOST-sh-gpg ] && \
#keychain --agents gpg #keychain --agents gpg