Keychain and ssh-agent works fine.
This commit is contained in:
parent
3a51ca680d
commit
d34974413a
18
zlogin
18
zlogin
|
@ -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
|
||||||
|
#else
|
||||||
|
#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
|
||||||
. $HOME/.keychain/$HOST-sh
|
. $HOME/.keychain/$HOST-sh
|
||||||
else
|
|
||||||
if [ -f $HOME/.ssh/id_rsa ]; then
|
|
||||||
keychain --agents ssh id_rsa
|
|
||||||
. $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
|
||||||
|
|
Loading…
Reference in New Issue