025.Linux-将本地文件批量发送到配置免密的其他服务器

 

[root@ecs-xxx ~]# cat bilist 
1x.xx.x4.xx
1x.x.x8.xx
1x.x.xx.xx
1x.x.1x.xx

 
for i in `cat bilist`;do scp /data/datacenter/libs/*  $i:/data/datacenter/libs/;done


for i in `cat bilist`;do scp /etc/yundt-bundle-data-tagengine-tagjob-3.29.3.0-SNAPSHOT-share.jar  $i:/etc/;done

 

posted @ 2023-02-08 14:06  star521  阅读(36)  评论(0编辑  收藏  举报