4 Useful Tools to Run Commands on Multiple Linux Servers

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

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.45/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.

Aaron Kili

Aaron Kili is a Linux and F.O.S.S enthusiast, an upcoming Linux SysAdmin, web developer, and currently a content creator for TecMint who loves working with computers and strongly believes in sharing knowledge.

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...

14 Responses

  1. Vimal says:

    Thanks Aaron for this post!

    I tried PSSH, but it’s getting timed out, killed by signal 9. With PDSH, it’s getting timed out, ssh exited with exit code 255. Also, with Ansible, I’m not able to put my hosts in etc/ansible/hosts file (just readable), or create any other file in that directory. Can you please suggest any solution?

  2. I just wanted to add on here that this is now available for Ubuntu in several native repo’s (xenail and bionic) and the package name is pssh. So for your Ubuntu and Debian users just do apt install pssh.

  3. Jay Z says:

    I’ve been using “gsh” for a couple years. Its a simple parallel SSH app, but its nice because, I can maintain only one hosts file, but specify multiple categories for each host, and mix and match them with simple booleans to get the execution list of hosts I desire.

  4. Den Stark says:

    I’m using terminator and can broadcast commands to multiple modes/separate terminals

  5. Joe says:



  6. Sugar says:

    Is there a tool like these but with an additional feature: instead of manually editing a “host” file, other computers would notify a server that they are available for ssh?

  7. John west says:

    Xcat project spawned psh and dsh. Older version of psh had an option to use nodelist.tab file that contained:

    Host01 group1,webserver,rhel7
    Host02 group1,appserver,rhel6

    Psh. Group1 uptime

    Would run on both

    Psh rhel6 uptime

    would run only on host02

    Each server is listed once, not i. 10 different files.

    Later xcat switched to a db format for hosts, but was more complicated.

    Loved that nodelist.tab simplicity.

  8. Rick Maus says:

    Thanks for the article! Always looking for more options to perform similar tasks.

    When you want to interact with multiple hosts simultaneously, MobaXterm (mobaxterm.mobatek.net), is a powerful tool. You can even use your favorite text editor (vim, emacs, nano, ed) in real time.

    Each character typed is sent in parallel to all hosts and you immediately see the effect. Selectively toggling whether the input stream is sent to individual host(s) during a session allows for custom changes that only affect a desired subset of hosts.

    MobaXterm has a free home version as well as a paid professional edition. The company was highly responsive to issues reports that I provided and corrected the issues quickly.

    I have no affiliation with the company other than being a happy free edition customer.

Leave a Reply to Ravi Saive Cancel reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.