Skip to content

Commit

Permalink
ssh-keygen is generating a 4096 bit key which is taking over a minute…
Browse files Browse the repository at this point in the history
… to generate on a beagle at boot. Reduce to 2048 but generate the faster keys first so sshd can startup.wq
  • Loading branch information
dkulp committed Apr 21, 2024
1 parent c485f23 commit 777ea1a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/boot/FPPINIT.cpp
Expand Up @@ -134,7 +134,9 @@ static void checkSSHKeys() {
// with some random data
exec("dd if=/dev/hwrng of=/dev/urandom count=1 bs=4096 status=none");
}
execbg("/usr/bin/ssh-keygen -A &");
execbg("/usr/bin/ssh-keygen -q -N \"\" -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key &");
execbg("/usr/bin/ssh-keygen -q -N \"\" -t ed25519 -f /etc/ssh/ssh_host_ed25519_key &");
execbg("/usr/bin/ssh-keygen -q -N \"\" -t rsa -b 2048 -f /etc/ssh/ssh_host_rsa_key &");
}

// Copies files/config from the /boot partition to /home/fpp/media
Expand Down

0 comments on commit 777ea1a

Please sign in to comment.