有没有办法与多个系统并行执行 scp?

Kar*_*ick 10 ssh

是否可以同时将文件并行复制到所有系统?就像@一次应该在所有机器上复制文件...

Mit*_*tch 9

有一种方法。 看看这个Ubuntu 手册页。

姓名

   parallel-scp - parallel versions of scp
Run Code Online (Sandbox Code Playgroud)

概要

   parallel-scp [OPTIONS] -h hosts.txt local remote
Run Code Online (Sandbox Code Playgroud)

描述

   pssh provides a number of commands for executing against a group of
   computers, using SSH. It's most useful for operating on clusters of
   homogenously-configured hosts.

   parallel-scp copy files in parallel to a set of machines.
Run Code Online (Sandbox Code Playgroud)

来源:Ubuntu 联机帮助页

  • 这里的一些例子会很棒! (6认同)