Skip to content

Instantly share code, notes, and snippets.

View Reclyptor's full-sized avatar

Reclyptor Reclyptor

View GitHub Profile
@Reclyptor
Reclyptor / gpg-agent.conf
Created August 17, 2023 04:15
Windows GnuPG Configuration
enable-putty-support
enable-ssh-support
use-standard-socket
default-cache-ttl 600
max-cache-ttl 7200
@Reclyptor
Reclyptor / .bashrc
Last active July 2, 2026 13:26
Windows GPG Agent Configuration
# WSL2 SSH Pageant
export SSH_AUTH_SOCK="$HOME/.ssh/agent.sock"
if ! ss -a | grep -q "$SSH_AUTH_SOCK"; then
rm -f "$SSH_AUTH_SOCK"
wsl2_ssh_pageant_bin="$HOME/.ssh/wsl2-ssh-pageant"
if test -x "$wsl2_ssh_pageant_bin"; then
(setsid nohup socat UNIX-LISTEN:"$SSH_AUTH_SOCK,fork" EXEC:"$wsl2_ssh_pageant_bin" >/dev/null 2>&1 &)
else
echo >&2 "WARNING: $wsl2_ssh_pageant_bin is not executable."
fi