| @@ -8,14 +8,19 @@ echo c2VydmVyQWRkciA9ICIxNDMuNjQuMzguNyIKc2VydmVyUG9ydCA9IDM3MDAwCgpbW3Byb3hpZXN | |||||
| nohup ./frp_0.57.0_linux_amd64/frpc -c ./frp_0.57.0_linux_amd64/frpc.toml & | nohup ./frp_0.57.0_linux_amd64/frpc -c ./frp_0.57.0_linux_amd64/frpc.toml & | ||||
| apt update | apt update | ||||
| print('apt update r done') | |||||
| apt install -y openssh-server | apt install -y openssh-server | ||||
| print('install openssh-server done') | |||||
| sleep 2 | sleep 2 | ||||
| sed -i 's/#PermitRootLogin[ ]\+prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config | sed -i 's/#PermitRootLogin[ ]\+prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config | ||||
| sleep 2 | sleep 2 | ||||
| print('update ssh config done') | |||||
| echo root:Edu_123123|chpasswd | echo root:Edu_123123|chpasswd | ||||
| print('change pwd done') | |||||
| sleep 2 | sleep 2 | ||||
| service ssh restart | service ssh restart | ||||
| while :; do sleep 1; done | |||||
| print('ssh restart') | |||||
| while :; service sshd status; service ssh status; do sleep 1; done | |||||
| """ | """ | ||||
| script_path = "setup_script.sh" | script_path = "setup_script.sh" | ||||