Update setup script to use ed25519 keys instead of rsa
Some checks failed
ssh-test / ssh-test (push) Failing after 24s

This commit is contained in:
iFargle 2023-12-10 12:00:41 +09:00
parent a711a7af9e
commit 99dbcb8c0b
2 changed files with 7 additions and 5 deletions

View file

@ -37,16 +37,16 @@ sudo ssh-to-pgp \
# Set up ssh keys # Set up ssh keys
echo ">>> Setting up SSH Keys..... " echo ">>> Setting up SSH Keys..... "
ssh-keygen -t rsa -b 8192 -f ~/.ssh/id_rsa -N "" ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -N ""
echo "" >> ./keys/ssh/keys.txt echo "" >> ./keys/ssh/keys.txt
echo "# `whoami`@`hostname`" >> ./keys/ssh/keys.txt echo "# `whoami`@`hostname`" >> ./keys/ssh/keys.txt
cat /home/albert/.ssh/id_rsa.pub >> ./keys/ssh/keys.txt cat /home/albert/.ssh/id_ed25519.pub >> ./keys/ssh/keys.txt
echo ">>> Setting up Distributed Build SSH Keys..... " echo ">>> Setting up Distributed Build SSH Keys..... "
sudo ssh-keygen -t rsa -b 8192 -f /root/.ssh/id_rsa -N "" sudo ssh-keygen -t ed25519 -f /root/.ssh/id_ed25519 -N ""
echo "" >> ./keys/ssh/builder-keys.txt echo "" >> ./keys/ssh/builder-keys.txt
echo "# root@`hostname`" >> ./keys/ssh/builder-keys.txt echo "# root@`hostname`" >> ./keys/ssh/builder-keys.txt
sudo cat /root/.ssh/id_rsa.pub >> ./keys/ssh/builder-keys.txt sudo cat /root/.ssh/id_ed25519.pub >> ./keys/ssh/builder-keys.txt
# Add all changes to git and and push # Add all changes to git and and push
echo ">>> Pushing to git..... " echo ">>> Pushing to git..... "

View file

@ -1,3 +1,5 @@
{ config, desktop, lib, pkgs, ... }: { { config, desktop, lib, pkgs, ... }: {
users.users.root.openssh.authorizedKeys.keyFiles = [ ../../../keys/ssh/builder-keys.txt ]; users.users.root.openssh.authorizedKeys.keyFiles = [
../../../keys/ssh/keys.txt
];
} }