Skip to content

Commit

Permalink
Copy ecdsa/sk keys from /root/.ssh/authorized_keys
Browse files Browse the repository at this point in the history
  • Loading branch information
nbdd0121 authored Nov 8, 2023
1 parent fca6d15 commit 7d89d7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nix/kexec-installer/kexec-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ extractPubKeys() {
key="$home/$file"
if test -e "$key"; then
# workaround for debian shenanigans
grep -o '\(ssh-[^ ]* .*\)' "$key" >> ssh/authorized_keys || true
grep -o '\(\(ssh\|ecdsa\|sk\)-[^ ]* .*\)' "$key" >> ssh/authorized_keys || true
fi
done
}
Expand Down

0 comments on commit 7d89d7c

Please sign in to comment.