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