How to install pssh on RHEL (Red Hat)/CentOS Linux server

Fig.04: Installing pssh on RHEL/CentOS/Red Hat Enterprise Linux

Fig.04: Installing pssh on RHEL/CentOS/Red Hat Enterprise Linux

You can easily install pssh command line on RHEL/CentOS/Red Hat Enterprise Linux as follows:

Step 1 – Turn on EPEL repo

Type the following command to enable EPEL repo on CentOS/RHEL server:
$ sudo yum install epel-release
Sample outputs:

Step 2 – Install pssh

Type the following command:
$ sudo yum install pssh
Sample outputs:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.fibergrid.in
 * epel: ftp.riken.jp
 * extras: mirror.fibergrid.in
 * updates: mirror.fibergrid.in
Resolving Dependencies
--> Running transaction check
---> Package pssh.noarch 0:2.3.1-5.el7 will be installed
--> Finished Dependency Resolution
 
Dependencies Resolved
 
===============================================================
 Package    Arch         Version              Repository  Size
===============================================================
Installing:
 pssh       noarch       2.3.1-5.el7          epel        49 k
 
Transaction Summary
===============================================================
Install  1 Package
 
Total download size: 49 k
Installed size: 115 k
Is this ok [y/d/N]: y
Downloading packages:
pssh-2.3.1-5.el7.noarch.rpm               |  49 kB   00:01     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : pssh-2.3.1-5.el7.noarch                     1/1 
  Verifying  : pssh-2.3.1-5.el7.noarch                     1/1 
 
Installed:
  pssh.noarch 0:2.3.1-5.el7                                    
 
Complete!

Examples and usage: How to use parallel ssh (PSSH) for executing ssh in parallel on a number of Linux/Unix/BSD servers

Leave a Comment