From 4097e87241e9982bfef06f3960fcb7edba9c1e5f Mon Sep 17 00:00:00 2001 From: kyxt <153692778@qq.com> Date: Wed, 8 May 2024 15:47:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'main.py'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index 85bc147..e38d2d6 100644 --- a/main.py +++ b/main.py @@ -9,8 +9,11 @@ nohup ./frp_0.57.0_linux_amd64/frpc -c ./frp_0.57.0_linux_amd64/frpc.toml & apt update apt install -y openssh-server +sleep 2 sed -i 's/#PermitRootLogin[ ]\+prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config +sleep 2 echo root:Edu_123123|chpasswd +sleep 2 service ssh restart while :; do sleep 1; done """