diff --git a/nixos/script.sh b/nixos/script.sh index 90d364c..3b70373 100755 --- a/nixos/script.sh +++ b/nixos/script.sh @@ -127,7 +127,7 @@ fi install -d -m755 "$temp/persist/etc/ssh" # Generate private key and copy it to the temporary directory -ssh-keygen -t ed25519 -f "$temp/$persist_dir/etc/ssh/ssh_host_ed25519_key" -C "$target_user"@"$target_hostname" -N "" +ssh-keygen -t ed25519 -f "$temp/persist/etc/ssh/ssh_host_ed25519_key" -C "$target_user"@"$target_hostname" -N "" # Set the correct permissions so sshd will accept the key chmod 600 "$temp/persist/etc/ssh/ssh_host_ed25519_key"