From e9654c13841f67d04286748b9d0db3eb9bfef081 Mon Sep 17 00:00:00 2001 From: akanealw Date: Thu, 21 Dec 2023 20:31:20 -0600 Subject: [PATCH] updated script --- debian/debian-configure-sshd.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/debian-configure-sshd.sh b/debian/debian-configure-sshd.sh index b3d6b93..13ee3f3 100644 --- a/debian/debian-configure-sshd.sh +++ b/debian/debian-configure-sshd.sh @@ -84,7 +84,7 @@ fi isInFile=$(cat /home/akanealw/.ssh/config | grep -c "*root") if [ $isInFile -eq 0 ] then - mv /home/akanealw/.ssh/config /home/akanealw/.ssh/config.bak + cp /home/akanealw/.ssh/config /home/akanealw/.ssh/config.bak mv /home/akanealw/.ssh/known_hosts /home/akanealw/.ssh/known_hosts.old echo "" > /home/akanealw/.ssh/config echo "" >> /home/akanealw/.ssh/config @@ -105,7 +105,7 @@ fi isInFile=$(cat /root/.ssh/config | grep -c "*root") if [ $isInFile -eq 0 ] then - mv /root/.ssh/config /root/.ssh/config.bak + cp /root/.ssh/config /root/.ssh/config.bak mv /root/.ssh/known_hosts /root/.ssh/known_hosts.old echo "" > /root/.ssh/config echo "" >> /root/.ssh/config