|
@@ -67,12 +67,6 @@ sudo apt-get update
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
|
sudo apt-get -y install rpl zip unzip openssl curl expect dirmngr apt-transport-https lsb-release ca-certificates dnsutils htop
|
|
|
|
|
|
-sudo rpl -i -w "#PasswordAuthentication" "PasswordAuthentication" /etc/ssh/sshd_config
|
|
|
-sudo rpl -i -w "# PasswordAuthentication" "PasswordAuthentication" /etc/ssh/sshd_config
|
|
|
-sudo rpl -i -w "PasswordAuthentication no" "PasswordAuthentication yes" /etc/ssh/sshd_config
|
|
|
-sudo rpl -i -w "PermitRootLogin yes" "PermitRootLogin no" /etc/ssh/sshd_config
|
|
|
-sudo service sshd restart
|
|
|
-
|
|
|
WELCOME=/etc/motd
|
|
|
sudo touch $WELCOME
|
|
|
sudo cat > "$WELCOME" <<EOF
|
|
@@ -416,6 +410,12 @@ crontab $TASK
|
|
|
|
|
|
sudo systemctl restart nginx.service
|
|
|
|
|
|
+sudo rpl -i -w "#PasswordAuthentication" "PasswordAuthentication" /etc/ssh/sshd_config
|
|
|
+sudo rpl -i -w "# PasswordAuthentication" "PasswordAuthentication" /etc/ssh/sshd_config
|
|
|
+sudo rpl -i -w "PasswordAuthentication no" "PasswordAuthentication yes" /etc/ssh/sshd_config
|
|
|
+sudo rpl -i -w "PermitRootLogin yes" "PermitRootLogin no" /etc/ssh/sshd_config
|
|
|
+sudo service sshd restart
|
|
|
+
|
|
|
clear
|
|
|
echo "Cipi installation has been completed... Wait for your data!"
|
|
|
sleep 3s
|