Pssh – Execute Commands on Multiple Remote Linux Servers Using Single Terminal

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

34 Responses

  1. Otheus says:

    I feel sorry for the author of `pssh` and this blog. `pdsh` is written in C and has been maintained since the early 2000s.

  2. Prashant says:

    Hi this is a very good article, but i think it is only works when you have root password.
    And also one it will not work if root having different passwords on other servers.
    Am i right??
    Do you know any other commands for sudo users for the same purpose?

  3. Jalal Hajigholamali says:

    Thanks a lot
    Very nice and useful article
    Thanks again

  4. Vinay says:

    I’ve coded this small tool – MultiSSH, which can be run in windows to ssh to multiple linux servers and run a command and capture the output.
    Download link below
    Its a very easy to use tool and self explanatory.

  5. Mulot says:

    How to solve this when connecting?

    “Are you sure you want to continue connecting (yes/no)?
    Host key verification failed.”

    and then moved on to the next IP.

  6. Miguel Espinar says:

    Nice post and good tool, but with a bash script and ssh is not difficult you can get similar results.

  7. Rafael Rojas says:

    Hi nice post. What about if the servers has different password?

  8. Mark Seger says:

    Just out of curiosity, how is this different from pdsh, the parallel distributed shell which has been running ssh commands in parallel for at least 15 years or more.

  9. Aaron Kili K says:

    Just read about it. I thinks its good too. We shall try it and write about it

    • Ravi Saive says:


      Thanks for telling us about that tsshbatch tool, we will try to write on separate article on this tool in our upcoming article..

Got something to say? Join the discussion.

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.