Copy ecdsa/sk keys from /root/.ssh/authorized_keys
This commit is contained in:
parent
fca6d15d05
commit
7d89d7c99f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue