2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-09-05 17:58:18 +00:00

Have sshd only generate ed25519 during initramfs phase of diskless.

sshd-keygen service will come later with other keys, if desired.
This commit is contained in:
Jarrod Johnson
2025-03-04 10:04:30 -05:00
parent 0d4da78f05
commit f06d9a81e7

View File

@@ -292,7 +292,7 @@ if [[ $confluent_websrv == *:* ]] && [[ $confluent_websrv != "["* ]]; then
confluent_websrv="[$confluent_websrv]"
fi
echo -n "Initializing ssh..."
ssh-keygen -A
ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -C '' -N ''
for pubkey in /etc/ssh/ssh_host*key.pub; do
certfile=${pubkey/.pub/-cert.pub}
privfile=${pubkey%.pub}