大量更新

This commit is contained in:
zeaslity
2026-05-19 14:28:44 +08:00
parent a8f6bda703
commit 9fc3372fa3
5299 changed files with 423176 additions and 426690 deletions

View File

@@ -0,0 +1,13 @@
host_list=(192.168.6.3 192.168.6.7 192.168.6.5)
for host in ${host_list[@]}
do
echo "current host is $host"
ssh -p 2022 root@"$host" "cp /etc/ssh/sshd_config /etc/ssh/sshd_config_zyly"
scp -P 2022 /etc/ssh/sshd_config root@"$host":/etc/ssh/sshd_config
ssh -p 2022 root@"$host" "systemctl restart sshd"
echo ""
done