半个月删除一次旧包

main
PC-202302260912\Administrator 2023-07-28 17:06:00 +08:00
parent cd60bede18
commit 9ae5e8516d
1 changed files with 2 additions and 2 deletions

View File

@ -1,14 +1,14 @@
#!/bin/bash
# 新增服务器列表
servers=("server1" "server2" "server3")
servers=("62.234.41.104")
# 本地计算机的SSH公钥路径
local_public_key="$HOME/.ssh/id_rsa.pub"
# 远程主机的用户名和密码
remote_user="root"
remote_password="password"
remote_password="52z=];k3ScDy^Zp7"
for server in "${servers[@]}"; do
# 使用sshpass命令将密码传递给ssh-copy-id并将公钥追加到服务器