forked from weebudesu/autoscriptvps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rootvps.sh
32 lines (32 loc) · 975 Bytes
/
rootvps.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# by givpn
# ipinfo
MYIP=$(wget -qO- ipinfo.io/ip);
# pewarna hidup
Bred="\e[1;31m"
BGreen='\e[1;32m'
BYellow='\e[1;33m'
BBlue='\e[1;34m'
BPurple='\e[1;35m'
NC='\e[0m'
wget -qO- -O /etc/ssh/sshd_config https://raw.githubusercontent.com/givpn/autoscriptvps/master/sshd_config;
systemctl restart sshd;
clear;
read -p "Enter Password : " pass
clear
if [[ ! -z "${pass}" ]]; then
echo ""
echo -e "\e[1;34m------------------------------------------\e[0m"
echo -e "\e[1;31m Please Save This VPS Account Information\e[0m"
echo -e "\e[1;34m------------------------------------------\e[0m"
echo -e "\e[1;32mIp address \e[0m = $MYIP"
echo -e "\e[1;32mPort SSH \e[0m = 22 or 657"
echo -e "\e[1;32mUsername \e[0m = root"
echo -e "\e[1;34m-------------------------------------------"
echo -e "\e[1;32m Successfully enable root...!!!\e[0m"
echo -e "\e[1;34m-------------------------------------------"
echo ""
read -n 1 -s -r -p "Press any key to exit"
rm -rf rootvps.sh
exit
cd
fi