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

If you have any questions or problems regarding this article and want help within 24 Hours? Ask Now

Support TecMint: Did you find this tutorial helpful?. Please help to keep it alive by donating. Every cent counts! - Donate Now

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.

Receive Your Free Complimentary eBook NOW! -

Download Free Linux eBooks

Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Introduction to Linux - A Hands on Guide

You may also like...

18 Responses

  1. Dave says:

    -c does not mean “command”:

    –concurrent-shell | -c
    Executes shell concurrently.

  2. Dustin says:

    err: username@host:port (not IP at the end… No undo)

  3. Dustin says:

    Try putting username@host:ip in the group or list file and see if it will find the proper port for your instance.

  4. Shaheel says:


    I have 3 machines in machinelist. but i can’t enter ssh key phrase for first and second, first and second asking key

    dsh -aM -c uptime
    root@x.x.x.x’s password: root@y.y.y.y’s password: root@z.z.z.z’s password:

    only can enter 3rd server password

  5. Shaheel says:

    How can use this with other SSH ports than 22. this only works with ssh port 22. How can use this with other ports

  6. thanks , very usefully ,

Leave a Reply

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

Join Over 95000+ Linux Users
  1. 66,682
  2. 3,836
  3. 31,647

Enter your email to get latest Linux Howto's