Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

can scp be used to send single file to multiple remote servers at the same time? If so what's that? if not, what's the alternative?

share|improve this question

I will suggest you write a script that allows you to run scp to each server in the background. This can be achieved by using a for loop. I hope this helps.

share|improve this answer

Check out parallel-scp as described in the Debian Administration article Automating ssh and scp across multiple hosts.

share|improve this answer

You can use cssh to login to all the destination servers, then you can run a single command in everyone to scp the file from the source to a common path in the destinations

share|improve this answer
Sounds interesting. Providing a link to cssh (or more details on how to use it in this situation) would be helpful. – pjmorse Sep 24 '12 at 0:05
It's in the package "clusterssh", you can use it to login in and run the same command in many servers at the same time, in this case run the scp to get the source file XD – daniel2ac Sep 24 '12 at 16:44

I have decided to use parallel-distributed shell(pdsh) for that.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.