Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question

migrated from stackoverflow.com Mar 7 '11 at 12:28

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

2 Answers 2

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.