From 6cdc7bbba74e24f3e65d5568d70647ba40683a0a Mon Sep 17 00:00:00 2001 From: ReachableCEO Date: Wed, 2 Jul 2025 17:43:17 -0500 Subject: [PATCH] this code is going to be quite resillient when done.. --- ProjectCode/Modules/Security/secharden-ssh.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ProjectCode/Modules/Security/secharden-ssh.sh b/ProjectCode/Modules/Security/secharden-ssh.sh index 8533994..ac868ac 100644 --- a/ProjectCode/Modules/Security/secharden-ssh.sh +++ b/ProjectCode/Modules/Security/secharden-ssh.sh @@ -55,14 +55,15 @@ if [ "$LOCALUSER_CHECK" -gt 0 ]; then fi if [ "$SUBODEV_CHECK" = 1 ]; then + if [ ! -d $SUBODEV_SSH_DIR ]; then mkdir /home/subodev/.ssh/ fi -fi curl --silent "${DL_ROOT}"/ProjectCode/ConfigFiles/SSH/AuthorizedKeys/localuser-ssh-authorized-keys > /home/subodev/.ssh/authorized_keys \ && chmod 400 /home/subodev/.ssh/authorized_keys \ && chown subodev: /home/subodev/.ssh/authorized_keys +fi cat ../../ConfigFiles/SSH/Configs/tsys-sshd-config > /etc/ssh/sshd_config