Tentative de pallier à un fonctionnement bizarre de keychain ...
Vient en complément de c542dee1b sur https://git.101010.fr/dotfiles-gardouille/scripts
This commit is contained in:
parent
3834ca5a32
commit
b04d4b6d50
27
zlogin
27
zlogin
|
@ -32,17 +32,6 @@ mesg y
|
||||||
#esac
|
#esac
|
||||||
|
|
||||||
|
|
||||||
# Lancement de ssh-agent
|
|
||||||
if [ ${USER} != "root" ]; then
|
|
||||||
if [ ! -f ~/.keychain/$HOST-sh ]; then
|
|
||||||
keychain --clear ~/.ssh/id_rsa
|
|
||||||
fi
|
|
||||||
source ~/.keychain/$HOST-sh
|
|
||||||
fi
|
|
||||||
#keychain ~/.ssh/id_rsa
|
|
||||||
#source ~/.keychain/$HOST-sh
|
|
||||||
|
|
||||||
|
|
||||||
## Génération du fichier ~/.ssh/config
|
## Génération du fichier ~/.ssh/config
|
||||||
if [ -f ~/.ssh/config_00base ]; then
|
if [ -f ~/.ssh/config_00base ]; then
|
||||||
rm -f ~/.ssh/config
|
rm -f ~/.ssh/config
|
||||||
|
@ -74,3 +63,19 @@ if [ ${USER} != "root" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Launch Keychain for ssh
|
||||||
|
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
|
||||||
|
|
||||||
|
# Launch Keychain for GPG
|
||||||
|
#[ -f $HOME/.keychain/$HOST-sh-gpg ] && \
|
||||||
|
#. $HOME/.keychain/$HOST-sh-gpg
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue