Pages

Thursday, June 29, 2017

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

No doubt, that OpenSSH is one of the most widely used and powerful tool available for Linux, that allows you to connect securely to remote Linux systems via a shell and allows you to transfer files securely to and from remote systems.
Run Commands on Multiple Linux Servers
Pssh – Run Commands on Multiple Linux Servers
But the biggest disadvantages of OpenSSH is that, you cannot execute same command on multiple hosts at one go and OpenSSH is not developed to perform such tasks. This is where Parallel SSH or PSSH tool comes in handy, is a python based application, which allows you to execute commands on multiple hosts in parallel at the same time.
PSSH tool includes parallel versions of OpenSSH and related tools such as:
  1. pssh – is a program for running ssh in parallel on a multiple remote hosts.
  2. pscp – is a program for copying files in parallel to a number of hosts.
    1. Pscp – Copy/Transfer Files Two or More Remote Linux Servers
  3. prsync – is a program for efficiently copying files to multiple hosts in parallel.
  4. pnuke – kills processes on multiple remote hosts in parallel.
  5. pslurp – copies files from multiple remote hosts to a central host in parallel.
These tools are good for System Administrators who find themselves working with large collections of nodes on a network.

Install PSSH or Parallel SSH on Linux

In this guide, we shall look at steps to install the latest version of PSSH (i.e. version 2.3.1) program on Fedorabased distributions such as CentOS/RedHat and Debian derivatives such as Ubuntu/Mint using pip command.
The pip command is a small program (replacement of easy_install script) for installing and managing Python software packages index.

On Fedora based Distributions

On CentOS/RHEL distributions, you need to first install pip (i.e. python-pip) package under your system, in order to install PSSH program.
      ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
                                                    ► Read more: http://adf.ly/1nBgPB
      ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

No comments:

Post a Comment