Merge pull request #139 from nbdd0121/patch-1

Copy ecdsa/sk keys from /root/.ssh/authorized_keys
This commit is contained in:
Jörg Thalheim 2023-11-08 23:18:30 +01:00 committed by GitHub
commit 81ab4e8f6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,7 @@ extractPubKeys() {
key="$home/$file" key="$home/$file"
if test -e "$key"; then if test -e "$key"; then
# workaround for debian shenanigans # workaround for debian shenanigans
grep -o '\(ssh-[^ ]* .*\)' "$key" >> ssh/authorized_keys || true grep -o '\(\(ssh\|ecdsa\|sk\)-[^ ]* .*\)' "$key" >> ssh/authorized_keys || true
fi fi
done done
} }