Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

A script for remote replication

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

There is a requirement that there are N servers, each with a different port.

For example, 1.1.1.1purl 22

2.2.2.2:33

3.3.3.3:55

……

All servers are made secret-free login.

First, write a file to write the ip and the corresponding port, such as: vim scp.log1.1.1.1:222.2.2.2:333.3.3.3:55. Vim scp.shroudanbinandbashhands authorizationgyu (Email:348450594@qq.com) # this is a scp.shwhile read line do for i in $line do touch / tmp/scp.txt echo $I > / tmp/scp.txt Scp / tmp/a.txt-P `awk-F:'{print $NF}'/ tmp/ scp.txt` root@ `awk-F:'{print $1}'/ tmp/ scp.txt`: / tmp/ echo > / tmp/scp.txt done done < / tmp/scp.log

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report