linux:通过ssh将数据传输到多台机器

我有几TB的数据由工具处理.工具的输出应同时发送到另外两台机器(同时,因为工具运行时出现停机时间,我想限制停机时间).

如果我只是从一台机器管道,那么很容易:

tool terabyte.txt | ssh user@1.2.3.4 /sbin/process-input

但是如何同时将数据发送到多台机器?

如果情况涉及其他软件或脚本,我不介意.它不一定是一个“纯粹的ssh”解决方案.

解决方法

你可以试试 ClutterSSH

With ClusteRSSH it is possible to make a SSH connection to multiple servers or machines to perform tasks from one single command window,without any scripting. The ‘cssh’ command lets you connect to any server specified as a command line argument,or to groups of servers (or cluster nodes) defined in a configuration file.

相关文章

1、安装Apache。 1)执行如下命令,安装Apache服务及其扩展包...
一、先说一下用ansible批量采集机器信息的实现办法: 1、先把...
安装配置 1. 安装vsftpd 检查是否安装了vsftpd # rpm -qa | ...
如何抑制stable_secret读取关键的“net.ipv6.conf.all.stabl...
1 删除0字节文件 find -type f -size 0 -exec rm -rf {} ...
## 步骤 1:安装必要的软件包 首先,需要确保系统已安装 `dh...