Use ssh-add -q

This commit is contained in:
Sam A. 2023-03-21 18:50:37 +01:00
parent 28980dfd63
commit 5cf5cb936a
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -1,6 +1,4 @@
if [[ -z $SSH_CONNECTION ]] && [[ $HOSTNAME != "toolbox" ]]; then if [[ -z $SSH_CONNECTION ]] && [[ $HOSTNAME != "toolbox" ]]; then
{ eval "$(ssh-agent)" &> /dev/null
eval "$(ssh-agent)" ssh-add -q ~/.ssh/id_^*.pub
ssh-add ~/.ssh/id_^*.pub
} &> /dev/null
fi fi