[deployment] set hostname in pubkey

This commit is contained in:
2025-02-25 17:40:37 +01:00
parent 63f3b5da1d
commit 3caa94c53b

View File

@@ -28,8 +28,8 @@ mkdir -p $pwpath/$host/secrets
cd $pwpath/$host/secrets cd $pwpath/$host/secrets
# Generate SSH keys # Generate SSH keys
ssh-keygen -f $hostkey -t ed25519 -N "" ssh-keygen -f $hostkey -t ed25519 -N "" -C "root@$host"
ssh-keygen -f $initrdkey -t ed25519 -N "" ssh-keygen -f $initrdkey -t ed25519 -N "" -C "root@$host-initrd"
#encrypt the private keys #encrypt the private keys
sops -e -i ./$hostkey sops -e -i ./$hostkey