Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

4 Answers

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

share|improve this answer
add comment

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

share|improve this answer
add comment

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
add comment

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
add comment

Your Answer

 
discard

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.