diff --git a/scripts/add_new_host_keys.sh b/scripts/add_new_host_keys.sh index b8db4770..3c8d6cca 100755 --- a/scripts/add_new_host_keys.sh +++ b/scripts/add_new_host_keys.sh @@ -28,8 +28,8 @@ mkdir -p $pwpath/$host/secrets cd $pwpath/$host/secrets # Generate SSH keys -ssh-keygen -f $hostkey -t ed25519 -N "" -ssh-keygen -f $initrdkey -t ed25519 -N "" +ssh-keygen -f $hostkey -t ed25519 -N "" -C "root@$host" +ssh-keygen -f $initrdkey -t ed25519 -N "" -C "root@$host-initrd" #encrypt the private keys sops -e -i ./$hostkey