This commit is contained in:
albert 2024-05-01 21:14:55 +09:00
parent cde064ae21
commit a9358ece4a
No known key found for this signature in database
GPG key ID: 64F6C4EB46C4543A
2 changed files with 8 additions and 6 deletions

View file

@ -23,9 +23,6 @@ echo ">>> !!!!!"
echo ">>> !!!!!" echo ">>> !!!!!"
echo ">>> !!!!!" echo ">>> !!!!!"
echo ">>> !!!!! Copy this signature to .sops.yaml: " echo ">>> !!!!! Copy this signature to .sops.yaml: "
echo ">>> !!!!!"
echo ">>> !!!!!"
echo ">>> !!!!!"
# Currently only RSA keys are allowed # Currently only RSA keys are allowed
sudo ssh-to-pgp \ sudo ssh-to-pgp \
@ -34,6 +31,10 @@ sudo ssh-to-pgp \
-i /etc/ssh/ssh_host_rsa_key \ -i /etc/ssh/ssh_host_rsa_key \
-o /etc/nixos/git/keys/hosts/$(hostname).asc -o /etc/nixos/git/keys/hosts/$(hostname).asc
echo ">>> !!!!!"
echo ">>> !!!!!"
echo ">>> !!!!!"
# Set up ssh keys # Set up ssh keys
echo ">>> Setting up SSH Keys..... " echo ">>> Setting up SSH Keys..... "
ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -N "" ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -N ""

View file

@ -30,9 +30,6 @@ echo ">>> !!!!!"
echo ">>> !!!!!" echo ">>> !!!!!"
echo ">>> !!!!!" echo ">>> !!!!!"
echo ">>> !!!!! Copy this signature to .sops.yaml: " echo ">>> !!!!! Copy this signature to .sops.yaml: "
echo ">>> !!!!!"
echo ">>> !!!!!"
echo ">>> !!!!!"
# Currently only RSA keys are allowed # Currently only RSA keys are allowed
sudo ssh-to-pgp \ sudo ssh-to-pgp \
@ -41,6 +38,10 @@ sudo ssh-to-pgp \
-i /etc/ssh/ssh_host_rsa_key \ -i /etc/ssh/ssh_host_rsa_key \
-o /etc/nixos/git/keys/hosts/$(hostname).asc -o /etc/nixos/git/keys/hosts/$(hostname).asc
echo ">>> !!!!!"
echo ">>> !!!!!"
echo ">>> !!!!!"
# Set up ssh keys # Set up ssh keys
echo ">>> Setting up SSH Keys..... " echo ">>> Setting up SSH Keys..... "
ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -N "" ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -N ""