Update server2.py
Browse files- server2.py +1 -0
server2.py
CHANGED
|
@@ -339,6 +339,7 @@ def check_api1():
|
|
| 339 |
print(f"Rsync 失败,返回码: {e.returncode}")
|
| 340 |
print(f"Command output: {e.output}")
|
| 341 |
generate_ssh_key()
|
|
|
|
| 342 |
# subprocess.run(f"bash /sync.sh -p {ssh_port} -s {frp_url}", shell=True, check=True)
|
| 343 |
# break # 跳出循环
|
| 344 |
else:
|
|
|
|
| 339 |
print(f"Rsync 失败,返回码: {e.returncode}")
|
| 340 |
print(f"Command output: {e.output}")
|
| 341 |
generate_ssh_key()
|
| 342 |
+
copy_public_key_to_remote(frp_url, ssh_port, "root", "qilan")
|
| 343 |
# subprocess.run(f"bash /sync.sh -p {ssh_port} -s {frp_url}", shell=True, check=True)
|
| 344 |
# break # 跳出循环
|
| 345 |
else:
|