From 0aa0d9c26f874e77fafb4958cb5a3ba4f5cde7b6 Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Wed, 14 Jun 2023 06:08:40 +0000 Subject: [PATCH] Latest --- .../run_onchange_after_08-generate-public-keys.sh.tmpl | 2 +- ...ted_authorized-keys.yubikey.tmpl => authorized-keys.yubikey} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename home/.chezmoitemplates/ssh/{encrypted_authorized-keys.yubikey.tmpl => authorized-keys.yubikey} (100%) diff --git a/home/.chezmoiscripts/universal/run_onchange_after_08-generate-public-keys.sh.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_08-generate-public-keys.sh.tmpl index ceda4e50..b92e95ef 100644 --- a/home/.chezmoiscripts/universal/run_onchange_after_08-generate-public-keys.sh.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_after_08-generate-public-keys.sh.tmpl @@ -17,7 +17,7 @@ logg info 'Ensuring public keys are present' -find "$HOME/.ssh" -type f -maxdepth 1 ! -name "*.pub" ! -name "authorized_keys*" ! -name "known_host*" ! -name "config" | while read FILE; do +find "$HOME/.ssh" -type f -maxdepth 1 ! -name "*.pub" ! -name "*authorized_keys*" ! -name "known_host*" ! -name "config" | while read FILE; do if [ ! -f "${FILE}.pub" ]; then logg info 'Generating missing public key for `'"$FILE"'`' ssh-keygen -f "$FILE" -y > "${FILE}.pub" diff --git a/home/.chezmoitemplates/ssh/encrypted_authorized-keys.yubikey.tmpl b/home/.chezmoitemplates/ssh/authorized-keys.yubikey similarity index 100% rename from home/.chezmoitemplates/ssh/encrypted_authorized-keys.yubikey.tmpl rename to home/.chezmoitemplates/ssh/authorized-keys.yubikey