SSH


SUBMITTED BY: NyeinKoKo255

DATE: Sept. 10, 2023, 4:03 p.m.

UPDATED: Sept. 10, 2023, 7:02 p.m.

FORMAT: Text only

SIZE: 2.2 kB

HITS: 679

  1. #!/bin/bash
  2. red='\x1b[31;1m'
  3. yellow='\x1b[33;1m'
  4. green='\x1b[32;1m'
  5. plain='\033[0m'
  6. # check root
  7. [[ $EUID -ne 0 ]] && echo -e "${red}Error: ${plain} You must use root user to run this script!\n" && exit 1
  8. 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;
  9. echo "<h3><font color='#D50000'>▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬
  10. </font></h3>
  11. <h3><font color='#f40125'>--- ۩ PREMIUM SERVER ۩ ---
  12. </font></h3>
  13. <h3><font color='#f27401'>--- ۩ SERVER BY 404 ۩ ---
  14. </font></h3>
  15. <h4><font color='#F535AA'>Telegram Channel >> https://t.me/Pmttg
  16. </font></h4>
  17. <h4><font color='#E65100'>Telegram Channel >> https://t.me/nkka_404
  18. </font></h4>
  19. <h3><font color='#D50000'>▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬
  20. </font></h3>" | tee /etc/ssh/gcp_404 >/dev/null
  21. useradd "nkka404" --shell=/bin/false -M
  22. echo "nkka404:nkka404" | chpasswd
  23. echo ""
  24. echo "------------------------------------"
  25. printf "Developed the script by"
  26. echo "------------------------------------"
  27. echo ""
  28. echo -e "${yellow}▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ ${plain}"
  29. echo -e "${GREEN} ___ ___ ________ ___ ___ ${plain}"
  30. echo -e "${GREEN}|\ \ |\ \ |\ __ \ |\ \ |\ \ ${plain}"
  31. echo -e "${GREEN}\ \ \|_\ \ \ \ \|\ \ \ \ \|_\ \ ${plain}"
  32. echo -e "${GREEN} \ \______ \ \ \ \/\ \ \ \______ \ ${plain}"
  33. echo -e "${GREEN} \|_____|\ \ \ \ \/\ \ \|_____|\ \ ${plain}"
  34. echo -e "${GREEN} \ \__\ \ \_______\ \ \__\ ${plain}"
  35. echo -e "${GREEN} \|__| \|_______| \|__| ${plain}"
  36. echo -e "${red}Contact the developer https://t.me/nkka404 for more information ${plain}"
  37. echo -e "${yellow}▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ ${plain}"

comments powered by Disqus