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
1 changed files with 1 additions and 0 deletions

View File

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