dustin
/
zdotdir
Archived
1
0
Fork 0

zshrc: Launch gpg-agent

I like to use `gpg-agent` as my SSH agent now.  This makes it possible
to use hardware keys (Yubikey, and hopefully soon Solo), and helps keep
the keys more secure by periodically locking them and requiring the
password to unlock them again.

Occasionally, `gpg-agent` gets in a weird state where it stops
responding.  I usually fix this with:

    echo KILLAGENT | gpg-connect-agent
    gpg-connect-agent /bye
    gpg-connect-agent updatestartuptty /bye
master
Dustin 2020-05-03 13:21:33 -05:00
parent 8844aead74
commit 6c18587fcf
1 changed files with 3 additions and 0 deletions

3
.zshrc
View File

@ -67,3 +67,6 @@ centos|redhat|rhel)
prompt redhat prompt redhat
;; ;;
esac esac
gpg-connect-agent /bye
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"