updated script
This commit is contained in:
4
debian/debian-configure-sshd.sh
vendored
4
debian/debian-configure-sshd.sh
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user