menu-ssh.sh 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #!/bin/bash
  2. clear
  3. echo -e "════════════════════════════════════════════════════════════
  4. = Script Vps For Debian N Ubuntu "
  5. echo -e ""
  6. echo -e " __ __ ___ ___ ___ ___ _____ "
  7. echo -e " \ \ / /| _ \/ __|| _ ) / _ \|_ _|"
  8. echo -e " \ V / | _/\__ \| _ \| (_) | | | "
  9. echo -e " \_/ |_| |___/|___/ \___/ |_| "
  10. echo -e ""
  11. echo -e "\e[94m .----------------------------------------------------. "
  12. echo -e "\e[94m | SSH & OpenVPN MENU | "
  13. echo -e "\e[94m '----------------------------------------------------' "
  14. echo -e "\e[0m "
  15. echo -e "\e[1;31m* [1]\e[0m \e[1;32m: Create OpenVPN SSH Account\e[0m"
  16. echo -e "\e[1;31m* [2]\e[0m \e[1;32m: Generate SSH & OpenVPN Trial Account\e[0m"
  17. echo -e "\e[1;31m* [3]\e[0m \e[1;32m: Extending SSH & OpenVPN Account Active Life\e[0m"
  18. echo -e "\e[1;31m* [4]\e[0m \e[1;32m: Delete SSH & OpenVPN Account\e[0m"
  19. echo -e "\e[1;31m* [5]\e[0m \e[1;32m: Check User Login SSH & OpenVPN\e[0m"
  20. echo -e "\e[1;31m* [6]\e[0m \e[1;32m: Daftar Member SSH & OpenVPN\e[0m"
  21. echo -e "\e[1;31m* [7]\e[0m \e[1;32m: Delete User Expired SSH & OpenVPN\e[0m"
  22. echo -e "\e[1;31m* [8]\e[0m \e[1;32m: Set up Autokill SSH\e[0m"
  23. echo -e "\e[1;31m* [9]\e[0m \e[1;32m: Displays Users Who Do Multi Login SSH\e[0m"
  24. echo -e "\e[1;31m* [10]\e[0m \e[1;32m: Restart Service Dropbear, Squid3, OpenVPN dan SSH\e[0m"
  25. echo -e ""
  26. echo -e ""
  27. read -p " Select From Options [1-10 or x]: " menussh
  28. echo -e ""
  29. case $menussh in
  30. 1)
  31. usernew
  32. ;;
  33. 2)
  34. trial
  35. ;;
  36. 3)
  37. renew
  38. ;;
  39. 4)
  40. deluser
  41. ;;
  42. 5)
  43. cek
  44. ;;
  45. 6)
  46. member
  47. ;;
  48. 7)
  49. delete
  50. ;;
  51. 8)
  52. autokill
  53. ;;
  54. 9)
  55. ceklim
  56. ;;
  57. 10)
  58. restart
  59. ;;
  60. x)
  61. menu
  62. ;;
  63. *)
  64. echo " Please enter an correct number!!"
  65. ;;
  66. esac