This commit is contained in:
Brian Zalewski 2023-06-14 06:08:40 +00:00
parent 721c23899d
commit 0aa0d9c26f
2 changed files with 1 additions and 1 deletions

View file

@ -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"