Find the answer to your Linux question:
Results 1 to 2 of 2
Hello, how to copy a file from one server to multiple servers using scp? There are over a 100 servers so I need to read from a server list that ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2013
    Posts
    18

    Scp


    Hello, how to copy a file from one server to multiple servers using scp? There are over a 100 servers so I need to read from a server list that I have. Is this possible?

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,378
    Possible, but there is a better and more controlled way.

    As indicated in another thread of yours, a system and config management tool like puppet or chef is appropriate for this number of machines.
    A trivial puppet manifest to do what you want looks like this:
    Code:
    file { "/your/file/on/the/servers":
      source => "puppet://modules/your_service/your_file_on_the_puppetmaster"
      owner  => 'root',
      group  => 'root',
      mode   => '600',
    }
    You must always face the curtain with a bow.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •