mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 01:44:40 +02:00
Make option parameters to ssh-keygen
uniform
This commit is contained in:
parent
bc3eb0a963
commit
04598a9aeb
1 changed files with 3 additions and 4 deletions
|
@ -85,11 +85,10 @@ used flakes:
|
|||
temp=$(mktemp -d)
|
||||
# ssh-host keys
|
||||
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"
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue