From 46214fd02f01def836d69a5657fca9d1b36868ee Mon Sep 17 00:00:00 2001 From: nirenjan Date: Thu, 27 Sep 2018 13:58:45 -0700 Subject: [PATCH] Add GPG agent configuration This change forces the SSH agent to use the GPG agent for the authorization keys. This is used in order to use a smartcard as the identity for SSH authentication. --- bash/bashrc.d/gpg.bash | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 bash/bashrc.d/gpg.bash diff --git a/bash/bashrc.d/gpg.bash b/bash/bashrc.d/gpg.bash new file mode 100644 index 0000000..1d2e9c2 --- /dev/null +++ b/bash/bashrc.d/gpg.bash @@ -0,0 +1,3 @@ +gpgconf --launch gpg-agent + +export SSH_AUTH_SOCK="$HOME/.gnupg/S.gpg-agent.ssh"