[deployment] set hostname in pubkey
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user