Kill remote gpg-agent when forwarding local one

This commit is contained in:
Sam A. 2023-03-27 15:29:39 +02:00
parent 11198cb480
commit 78deede3be
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -3,5 +3,6 @@ if [[ -z $SSH_CONNECTION ]] && [[ $HOSTNAME != "toolbox" ]]; then
gpgconf --launch gpg-agent gpgconf --launch gpg-agent
gpg-connect-agent updatestartuptty /bye &> /dev/null gpg-connect-agent updatestartuptty /bye &> /dev/null
else else
gpgconf --kill all
gpg-connect-agent reloadagent /bye &> /dev/null gpg-connect-agent reloadagent /bye &> /dev/null
fi fi