From 395c8704da88be4e95df0953938eddf5b0382b3d Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Thu, 11 Mar 2021 19:07:58 +0100 Subject: how to use gpg to manage ssh keys --- .config/fish/config.fish | 2 ++ .pam_environment | 2 ++ build | 5 +++++ 3 files changed, 9 insertions(+) create mode 100644 .pam_environment diff --git a/.config/fish/config.fish b/.config/fish/config.fish index e99e1dc..38413a4 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -14,5 +14,7 @@ function fish_user_key_bindings end end +gpg-connect-agent updatestartuptty /bye > /dev/null + function fish_mode_prompt end diff --git a/.pam_environment b/.pam_environment new file mode 100644 index 0000000..b55fba7 --- /dev/null +++ b/.pam_environment @@ -0,0 +1,2 @@ +SSH_AGENT_PID DEFAULT= +SSH_AUTH_SOCK DEFAULT="${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh" diff --git a/build b/build index b6f0ec7..96a3f69 100755 --- a/build +++ b/build @@ -71,3 +71,8 @@ ln -s $RC_DIR'/.task' $HOME # xscreensaver setup ln -s $RC_DIR'/.xscreensaver' $HOME + +# pam setup +ln -s $RC_DIR'/.pam_environment' $HOME + +echo "use gpg --list-secret-keys --with-keygrip, write the [A] keygrip to .gnupg/sshcontrol" -- cgit v1.2.3