From 10d431131808f634fad5e978ac330ebc03324744 Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Wed, 8 Apr 2026 06:45:44 +0200 Subject: [PATCH] Use PGP auth key for ssh --- gnupg/dot-gnupg/gpg-agent.conf | 6 ++++++ zsh/dot-zshrc | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 gnupg/dot-gnupg/gpg-agent.conf diff --git a/gnupg/dot-gnupg/gpg-agent.conf b/gnupg/dot-gnupg/gpg-agent.conf new file mode 100644 index 0000000..b3f2573 --- /dev/null +++ b/gnupg/dot-gnupg/gpg-agent.conf @@ -0,0 +1,6 @@ +enable-ssh-support + +default-cache-ttl 180800 +max-cache-ttl 180800 +default-cache-ttl-ssh 180800 +max-cache-ttl-ssh 180800 diff --git a/zsh/dot-zshrc b/zsh/dot-zshrc index adc7eed..38888ce 100644 --- a/zsh/dot-zshrc +++ b/zsh/dot-zshrc @@ -157,3 +157,7 @@ if (( $+commands[tmux] )); then exit fi fi + +# GPG-Agent +export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) +gpgconf --launch gpg-agent