Using DSH (Distributed Shell) to Run Linux Commands Across Multiple Machines

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.95/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Rob Krul

Rob is an avid user of Linux and Open Source Software, with over 15 years experience in the tech geek universe. Aside from experimenting with the many flavors of Linux, he enjoys working with BSDs, Solaris, and OS X. He currently works as an Independent IT Contractor.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

29 Responses

  1. n2o says:

    The -c command does not mean “command to be executed”. According to the manual, it means “concurrent shell”.

    –concurrent-shell | -c
    Executes shell concurrently.

    See http://pwet.fr/man/linux/commandes/dsh

  2. nakul says:

    If you have 1000 servers, It will ask 1000 times to put yes/no to known hosts and for first time to add ssh-key again it will ask 1000 times for password, then what is the use of this???

    • Ravi Saive says:

      @Nakul,

      Then you should go for Pscp tool to achieve the same

    • Andrew DeFaria says:

      Well if you set config for ssh to auto accept new known_hosts and establish pre-shared ssh keys then there’s no prompting at all!

    • kai keliikuli says:

      echo “StrictHostKeyChecking no” >> ~/.ssh/config
      and then connect to your thousand servers.
      They’ll end up in known hosts
      and then remove that line from ~/.ssh/config

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

Join Over 300K+ Linux Users
  1. 257,757
  2. 11,967
  3. 39,682

Are you subscribed?