From f0e25ab64cfdb09a8e640681ead02c8b4ddcc48e Mon Sep 17 00:00:00 2001 From: kalipso Date: Tue, 25 Feb 2025 17:40:37 +0100 Subject: [PATCH] [deployment] set hostname in pubkey --- scripts/add_new_host_keys.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/add_new_host_keys.sh b/scripts/add_new_host_keys.sh index 8fcce666..df94d2f6 100755 --- a/scripts/add_new_host_keys.sh +++ b/scripts/add_new_host_keys.sh @@ -29,8 +29,8 @@ mkdir -p "$pwpath" cd "$pwpath" # 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