Latest
This commit is contained in:
parent
721c23899d
commit
0aa0d9c26f
2 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue