Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to copy a file on multiple remote machines through scp in one command?

share|improve this question

migrated from Mar 7 '11 at 12:28

This question came from our site for professional and enthusiast programmers.

Consider using rdist.

share|improve this answer

PSSH provides a variety of tools that can do ssh, scp, rsync, etc operations on a cluster of machines.

share|improve this answer
Is it possible to use wildcard characters with IP addresses in scp – Shweta Mar 7 '11 at 11:36
@shweta, not with scp itself. (a) You need to take direct yes/no action over every initial connection with scp (b) scp itself sure won't do this, as @raghuram points out, which is why there are a variety of tools like pssh to automate connecting to multiple machines simultaneously. – sarnold Mar 7 '11 at 11:42

You must log in to answer this question.