From 2970d6917cc4c292151813d7b7ee899b68f14544 Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Tue, 28 Nov 2023 01:19:29 +0000 Subject: [PATCH] Fixed SSH bug --- .../universal/run_onchange_after_30-sshd.sh.tmpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/home/.chezmoiscripts/universal/run_onchange_after_30-sshd.sh.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_30-sshd.sh.tmpl index b9118992..c043b51e 100644 --- a/home/.chezmoiscripts/universal/run_onchange_after_30-sshd.sh.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_after_30-sshd.sh.tmpl @@ -32,6 +32,9 @@ if [[ ! "$(test -d /proc && grep Microsoft /proc/version > /dev/null)" ]]; then sudo setsebool -P nis_enabled 1 fi + ### Ensure keys are created + logg info 'Running sudo ssh-keygen -A' && sudo ssh-keygen -A + ### Restart SSH server if [ -d /Applications ] && [ -d /System ]; then # macOS