Make option parameters to ssh-keygen uniform

This commit is contained in:
Benedikt Heine 2024-12-02 21:33:48 +01:00
parent bc3eb0a963
commit 04598a9aeb

View file

@ -85,11 +85,10 @@ used flakes:
temp=$(mktemp -d) temp=$(mktemp -d)
# ssh-host keys # ssh-host keys
install -d -m755 "$temp/etc/ssh" install -d -m755 "$temp/etc/ssh"
ssh-keygen -o -t rsa -a 100 -N "" -b 4096 -f "$temp/etc/ssh/ssh_host_rsa_key"
ssh-keygen -o -t ed25519 -a 100 -N "" -f "$temp/etc/ssh/ssh_host_ed25519_key"
# initrd key
install -d -m755 "$temp/etc/secrets/initrd" install -d -m755 "$temp/etc/secrets/initrd"
ssh-keygen -o -t ed25519 -a 100 -N "" -f "$temp/etc/secrets/initrd/ssh_host_ed25519_key" ssh-keygen -o -a 100 -N "" -t rsa -b 4096 -f "$temp/etc/ssh/ssh_host_rsa_key"
ssh-keygen -o -a 100 -N "" -t ed25519 -f "$temp/etc/ssh/ssh_host_ed25519_key"
ssh-keygen -o -a 100 -N "" -t ed25519 -f "$temp/etc/secrets/initrd/ssh_host_ed25519_key"
``` ```
1. existing host 1. existing host