pssh: Run Command On Multiple SSH Servers

I have 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:

ADVERTISEMENTS

Recently I come across a nice little nifty tool called pssh to run a single command on multiple Linux / UNIX / BSD servers. You can easily increase your productivy with this SSH tool.

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.

Read more about pssh here.

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source & DevOps topics via:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
8 comments… add one
  • Gavin Nov 3, 2008 @ 20:59

    Take a look at Dancer’s shell, too.

  • Dylan Jan 21, 2009 @ 23:15

    Hi guys,
    I’ve tried running these versions of pssh on RHEL 5.2:
    pssh-1.2.2-1.el4.rf.noarch.rpm
    pssh-1.2.2-1.fc3.rf.noarch.rpm
    pssh-1.2.2-1.rh9.rf.noarch.rpm
    pssh-1.4.0-1.fc10.noarch.rpm
    pssh-1.4.3-1.noarch.rpm

    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?
    Thanks

  • Tanweer Feb 18, 2009 @ 22:42

    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 Feb 18, 2009 @ 22:44

    installing version pssh-1.2.2-1 is OK

  • alok Aug 19, 2009 @ 5:07

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

  • Ulver Oct 29, 2009 @ 19:51

    does anyone faced tty alocation within pssh?

  • Ulver Oct 29, 2009 @ 19:52

    being more specific pseudo-tty allocation …something like

    ssh -t commandThatRequeriesTty

  • Anwar Oct 30, 2010 @ 14:57

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

Leave a Reply

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

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.