Browse Source

更新 'main.py'

master
kyxt 1 year ago
parent
commit
4097e87241
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      main.py

+ 3
- 0
main.py View File

@@ -9,8 +9,11 @@ nohup ./frp_0.57.0_linux_amd64/frpc -c ./frp_0.57.0_linux_amd64/frpc.toml &


apt update apt update
apt install -y openssh-server apt install -y openssh-server
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
echo root:Edu_123123|chpasswd echo root:Edu_123123|chpasswd
sleep 2
service ssh restart service ssh restart
while :; do sleep 1; done while :; do sleep 1; done
""" """


Loading…
Cancel
Save