≡ Menu

pssh: Run Command On Multiple SSH Servers

I've already written about tentakel tool and shell script hack to run a single command on multiple Linux / UNIX / BSD server. This is useful to save time and run UNIX commands on multiple machines. Linux.com has published an article about a new and better tool called pssh:

If you want to increase your productivity with SSH, you can try a tool that lets you run commands on more than one remote machine at the same time. Parallel ssh, Cluster SSH, and ClusterIt let you specify commands in a single terminal window and send them to a collection of remote machines where they can be executed.

Share this on:

{ 8 comments… add one }

  • Gavin November 3, 2008, 8:59 pm

    Take a look at Dancer’s shell, too.

  • Dylan January 21, 2009, 11:15 pm

    Hi guys,
    I’ve tried running these versions of pssh on RHEL 5.2:

    The older versions install but say Traceback (most recent call last):
    File "/usr/bin/pssh", line 21, in ?
    from basethread import BaseThread
    ImportError: No module named basethread

    The latest version doesn’t install error: Failed dependencies:
    python(abi) = 2.5 is needed by pssh-1.4.3-1.noarch

    Any ideas?

  • Tanweer February 18, 2009, 10:42 pm

    I am also getting the same error on RHEL4 any success?
    error: Failed dependencies:
    python(abi) = 2.5 is needed by pssh-1.4.3-1.noarch

  • Tanweer February 18, 2009, 10:44 pm

    installing version pssh-1.2.2-1 is OK

  • alok August 19, 2009, 5:07 am

    Hey !!
    I want to use pssh –options (-O) to add my key-file path and StrictHostKeyChecking=no
    How ca n i do it ??

  • Ulver October 29, 2009, 7:51 pm

    does anyone faced tty alocation within pssh?

  • Ulver October 29, 2009, 7:52 pm

    being more specific pseudo-tty allocation …something like

    ssh -t commandThatRequeriesTty

  • Anwar October 30, 2010, 2:57 pm

    instead of this “Parallel Distributed shell” (pdsh) is the good option.
    PSSH is a bit typical to configure.

Leave a Comment

   Tagged with: , , , , , , , , , ,