#!/bin/bash
red='\x1b[31;1m'
yellow='\x1b[33;1m'
green='\x1b[32;1m'
plain='\033[0m'
# check root
[[ $EUID -ne 0 ]] && echo -e "${red}Error: ${plain} You must use root user to run this script!\n" && exit 1
sed -i 's/#\?AllowTcpForwarding .*/AllowTcpForwarding yes/' /etc/ssh/sshd_config && sed -i 's/#\?PasswordAuthentication .*/PasswordAuthentication yes/' /etc/ssh/sshd_config && sed -i 's/#\?Banner .*/Banner \/etc\/ssh\/gcp_404/' /etc/ssh/sshd_config && /etc/init.d/ssh restart;
echo "
▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬
--- ۩ PREMIUM SERVER ۩ ---
--- ۩ SERVER BY 404 ۩ ---
Telegram Channel >> https://t.me/Pmttg
Telegram Channel >> https://t.me/nkka_404
▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬
" | tee /etc/ssh/gcp_404 >/dev/null
useradd "nkka404" --shell=/bin/false -M
echo "nkka404:nkka404" | chpasswd
echo ""
echo "------------------------------------"
printf "Developed the script by"
echo "------------------------------------"
echo ""
echo -e "${yellow}▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ ${plain}"
echo -e "${GREEN} ___ ___ ________ ___ ___ ${plain}"
echo -e "${GREEN}|\ \ |\ \ |\ __ \ |\ \ |\ \ ${plain}"
echo -e "${GREEN}\ \ \|_\ \ \ \ \|\ \ \ \ \|_\ \ ${plain}"
echo -e "${GREEN} \ \______ \ \ \ \/\ \ \ \______ \ ${plain}"
echo -e "${GREEN} \|_____|\ \ \ \ \/\ \ \|_____|\ \ ${plain}"
echo -e "${GREEN} \ \__\ \ \_______\ \ \__\ ${plain}"
echo -e "${GREEN} \|__| \|_______| \|__| ${plain}"
echo -e "${red}Contact the developer https://t.me/nkka404 for more information ${plain}"
echo -e "${yellow}▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ ${plain}"